removeCompletedLatch.await(1000, TimeUnit.MILLISECONDS);
// Once remove executed, now let the interval flush continue
intervalFlushLatch.countDown();
// Wait for periodic flush to send modifications over the wire
TestingUtil.sleepThread(500);
assert !cache2.containsKey(k);
}
public static class MockReplQueue extends ReplicationQueueImpl {
static final Log log = LogFactory.getLog(MockReplQueue.class);
static CountDownLatch intervalFlushLatch;