Source:
public void testCacheIdleVerifyDumpForCorruptedDataOnSystemCache() throws Exception { int parts = 32; atomicConfiguration = new AtomicConfiguration() .setAffinity(new RendezvousAffinityFunction(false, parts)) .setBackups(2); IgniteEx ignite = (IgniteEx)startGrids(3); ignite.cluster().active(true); injectTestSystemOut(); for (int i = 0; i < 100; i++) { ignite.semaphore("s" + i, i, false, true); IgniteAtomicSequence sq = ignite.atomicSequence("sq" + i, 0, true); sq.incrementAndGet(); } CacheGroupContext storedSysCacheCtx = ignite.context().cache().cacheGroup(CU.cacheId("default-ds-group")); assertNotNull(storedSysCacheCtx); corruptDataEntry(storedSysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("sq0", "default-ds-group"), true, false); corruptDataEntry(storedSysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("sq" + parts / 2, "default-ds-group"), false, true); CacheGroupContext memorySysCacheCtx = ignite.context().cache().cacheGroup(CU.cacheId("default-volatile-ds-group")); assertNotNull(memorySysCacheCtx); corruptDataEntry(memorySysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("s0", "default-volatile-ds-group"), true, false); corruptDataEntry(memorySysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("s" + parts / 2, "default-volatile-ds-group"), false, true); assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify", "--dump", "--cacheKind", "SYSTEM")); Matcher fileNameMatcher = dumpFileNameMatcher(); if (fileNameMatcher.find()) { String dumpWithConflicts = new String(Files.readAllBytes(Paths.get(fileNameMatcher.group(1)))); assertTrue(dumpWithConflicts.contains("found 4 conflict partitions: [counterConflicts=2, " + "hashConflicts=2]")); } else fail("Should be found dump with conflicts"); }

Target:
public void testCacheIdleVerifyDumpForCorruptedDataOnSystemCache() throws Exception { int parts = 32; atomicConfiguration = new AtomicConfiguration() .setAffinity(new RendezvousAffinityFunction(false, parts)) .setBackups(2); IgniteEx ignite = (IgniteEx)startGrids(3); ignite.cluster().active(true); injectTestSystemOut(); for (int i = 0; i < 100; i++) { ignite.semaphore("s" + i, i, false, true); ignite.atomicSequence("sq" + i, 0, true) .incrementAndGet(); } CacheGroupContext storedSysCacheCtx = ignite.context().cache().cacheGroup(CU.cacheId("default-ds-group")); assertNotNull(storedSysCacheCtx); corruptDataEntry(storedSysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("sq0", "default-ds-group"), true, false); corruptDataEntry(storedSysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("sq" + parts / 2, "default-ds-group"), false, true); CacheGroupContext memorySysCacheCtx = ignite.context().cache().cacheGroup(CU.cacheId("default-volatile-ds-group")); assertNotNull(memorySysCacheCtx); corruptDataEntry(memorySysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("s0", "default-volatile-ds-group"), true, false); corruptDataEntry(memorySysCacheCtx.caches().get(0), new GridCacheInternalKeyImpl("s" + parts / 2, "default-volatile-ds-group"), false, true); assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify", "--dump", "--cacheFilter", CacheFilterEnum.SYSTEM.toString())); Matcher fileNameMatcher = dumpFileNameMatcher(); if (fileNameMatcher.find()) { String dumpWithConflicts = new String(Files.readAllBytes(Paths.get(fileNameMatcher.group(1)))); assertTrue(dumpWithConflicts.contains("found 4 conflict partitions: [counterConflicts=2, " + "hashConflicts=2]")); } else fail("Should be found dump with conflicts"); }