452453454455456457458459460461462
} }); } catch (IOException e) { LOG.error("error running visitor", e); } return done.booleanValue(); } }, 10, 60000); cluster.shutdown(); }
152153154155156157158159160161162
} }; new Thread(initializer).start(); Thread.sleep(1000L); // wait a second for thread to start and call getNumUsers() model.getNumUsers(); // should block assertTrue(initialized.booleanValue()); assertEquals(4, model.getNumUsers()); } @Test public void testExplicitRefreshAfterCompleteFileUpdate() throws Exception {
418419420421422423424425426427428
Map<Long, ShortCircuitReplica> evictable, Map<Long, ShortCircuitReplica> evictableMmapped) { finished.setValue(evictableMmapped.isEmpty()); } }); return finished.booleanValue(); } }, 10, 60000); cache.accept(new CountingVisitor(0, -1, -1, -1));