/** {@inheritDoc} */ @Override public void clearLocallyAll(Set keys, boolean srv, boolean near, boolean readers) { delegate.get().clearLocallyAll((Set<?>)transform(keys), srv, near, readers); }
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { if (cache != null) cache.clearLocallyAll(keys, clearServerCache(), clearNearCache(), true); return null; }
/** {@inheritDoc} */ @Override public void clearLocallyAll(Set<? extends K> keys, boolean srv, boolean near, boolean readers) { CacheOperationContext prev = gate.enter(opCtx); try { delegate.clearLocallyAll(keys, srv, near, readers); } finally { gate.leave(prev); } }
/** * @throws Exception If failed. */ @Test public void testCacheIdleVerify() throws Exception { IgniteEx ignite = (IgniteEx)startGrids(2); ignite.cluster().active(true); createCacheAndPreload(ignite, 100); injectTestSystemOut(); assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify")); assertTrue(testOut.toString().contains("no conflicts have been found")); HashSet<Integer> clearKeys = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6)); ignite.context().cache().cache(DEFAULT_CACHE_NAME).clearLocallyAll(clearKeys, true, true, true); assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify")); assertTrue(testOut.toString().contains("conflict partitions")); }
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { if (cache != null) cache.clearLocallyAll(keys, clearServerCache(), clearNearCache(), true); return null; }
/** {@inheritDoc} */ @Override public void clearLocallyAll(Set<? extends K> keys, boolean srv, boolean near, boolean readers) { CacheOperationContext prev = gate.enter(opCtx); try { delegate.clearLocallyAll(keys, srv, near, readers); } finally { gate.leave(prev); } }