timoninmaxim commented on code in PR #12515:
URL: https://github.com/apache/ignite/pull/12515#discussion_r2634610641
##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/WalModeChangeAdvancedSelfTest.java:
##########
@@ -699,4 +701,71 @@ private static void
checkConcurrentOperations(AtomicBoolean done, Ignite node) {
throw new RuntimeException(e);
}
}
+
+ /**
+ * Test that WAL mode change for caches from the same group requires all
caches to be specified.
+ *
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testWalModeChangeRequiresAllGroupCaches() throws Exception {
+ IgniteEx srv = startGrid(config(SRV_1, false, false));
+
+ srv.cluster().state(ACTIVE);
+
+ CacheConfiguration<Integer, Integer> cacheCfg1 =
cacheConfig(CACHE_NAME, PARTITIONED, TRANSACTIONAL);
+ CacheConfiguration<Integer, Integer> cacheCfg2 =
cacheConfig(CACHE_NAME_2, PARTITIONED, TRANSACTIONAL);
+
+ cacheCfg1.setGroupName("testGroup");
+ cacheCfg2.setGroupName("testGroup");
+
+ srv.getOrCreateCache(cacheCfg1);
+ srv.getOrCreateCache(cacheCfg2);
+
+ assertForAllNodes(CACHE_NAME, true);
+ assertForAllNodes(CACHE_NAME_2, true);
+
+ try {
Review Comment:
replace with assertThrows
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]