Skip to content

Commit bcd2fc6

Browse files
extend validation
1 parent e3082eb commit bcd2fc6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

modules/core/src/test/java/org/apache/ignite/internal/processors/cache/WalModeChangeAdvancedSelfTest.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.ArrayList;
2222
import java.util.Arrays;
2323
import java.util.Collection;
24+
import java.util.Collections;
2425
import java.util.concurrent.CountDownLatch;
2526
import java.util.concurrent.ThreadLocalRandom;
2627
import 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,

0 commit comments

Comments
 (0)