nizhikov commented on code in PR #11673: URL: https://github.com/apache/ignite/pull/11673#discussion_r1870863325
########## 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(); + + assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify", "--cancel")); + + int idleVerifyCnt = 0; + + for (ComputeTaskView view : srv.context().systemView().<ComputeTaskView>view(TASKS_VIEW)) { Review Comment: System view are local. Let's iterate started servers and check them all. -- 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