File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
modules/core/src/test/java/org/apache/ignite/internal/processors/cache Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2121import java .util .ArrayList ;
2222import java .util .Arrays ;
2323import java .util .Collection ;
24+ import java .util .Collections ;
2425import java .util .concurrent .CountDownLatch ;
2526import java .util .concurrent .ThreadLocalRandom ;
2627import java .util .concurrent .atomic .AtomicBoolean ;
@@ -734,12 +735,21 @@ public void testWalModeChangeRequiresAllGroupCaches() throws Exception {
734735 "Cannot change WAL mode because not all cache names belonging to the group are provided"
735736 );
736737
738+ assertThrows (
739+ () -> {
740+ srv .cluster ().disableWal (Collections .singleton (CACHE_NAME_2 ));
741+ return null ;
742+ },
743+ IgniteException .class ,
744+ "Cannot change WAL mode because not all cache names belonging to the group are provided"
745+ );
746+
737747 assertForAllNodes (CACHE_NAME , true );
738748 assertForAllNodes (CACHE_NAME_2 , true );
739749
740750 assertThrows (
741751 () -> {
742- srv .cluster ().enableWal (CACHE_NAME );
752+ srv .cluster ().enableWal (Collections . singleton ( CACHE_NAME ) );
743753 return null ;
744754 },
745755 IgniteException .class ,
@@ -753,7 +763,7 @@ public void testWalModeChangeRequiresAllGroupCaches() throws Exception {
753763
754764 assertThrows (
755765 () -> {
756- srv .cluster ().enableWal (CACHE_NAME );
766+ srv .cluster ().enableWal (CACHE_NAME_2 );
757767 return null ;
758768 },
759769 IgniteException .class ,
You can’t perform that action at this time.
0 commit comments