nizhikov commented on code in PR #11673: URL: https://github.com/apache/ignite/pull/11673#discussion_r1870866870
########## modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerTest.java: ########## @@ -752,6 +755,34 @@ public void testIdleVerifyOnInactiveClusterWithPersistence() throws Exception { assertContains(log, testOut.toString(), "The check procedure has finished, no conflicts have been found."); } + /** + * + */ + @Test + public void testIdleVerifyCancelCommand() throws Exception { + IgniteEx srv = startGrids(4); + + srv.cluster().state(ACTIVE); + + IgniteCache<Integer, Integer> cache = srv.createCache(DEFAULT_CACHE_NAME); + + for (int i = 0; i < 100000; i++) + cache.put(i, i); + + new Thread(() -> execute("--cache", "idle_verify") ).start(); Review Comment: `--cache idle_verify` don't return while command ends? If yes, we need to do the following: 1. Start with `GridTestUtils.runAsync` which returns Future. 2. Check future not done. 3. Cancel command. 4. Check future done. 5. Other checks for all servers. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org