@AfterClass public static void afterAll() { dataContext.cleanup(); }
@AfterClass public static void afterAll() { dataContext.cleanup(); }
@AfterClass public static void afterAll() { dataContext.cleanup(); }
@AfterClass public static void afterAll() { dataContext0.cleanup(); server.close(); }
@AfterClass public static void afterAll() { dataContext0.cleanup(); server.close(); }
@AfterClass public static void afterAll() { dataContext0.cleanup(); server.close(); }
@Test public void cleanupUsesExecutor() throws IOException { TestShuffleDataContext dataContext = createSomeData(); AtomicBoolean cleanupCalled = new AtomicBoolean(false); // Executor which does nothing to ensure we're actually using it. Executor noThreadExecutor = runnable -> cleanupCalled.set(true); ExternalShuffleBlockResolver manager = new ExternalShuffleBlockResolver(conf, null, noThreadExecutor); manager.registerExecutor("app", "exec0", dataContext.createExecutorInfo(SORT_MANAGER)); manager.applicationRemoved("app", true); assertTrue(cleanupCalled.get()); assertStillThere(dataContext); dataContext.cleanup(); assertCleanedUp(dataContext); }
@Test public void cleanupUsesExecutor() throws IOException { TestShuffleDataContext dataContext = createSomeData(); AtomicBoolean cleanupCalled = new AtomicBoolean(false); // Executor which does nothing to ensure we're actually using it. Executor noThreadExecutor = runnable -> cleanupCalled.set(true); ExternalShuffleBlockResolver manager = new ExternalShuffleBlockResolver(conf, null, noThreadExecutor); manager.registerExecutor("app", "exec0", dataContext.createExecutorInfo(SORT_MANAGER)); manager.applicationRemoved("app", true); assertTrue(cleanupCalled.get()); assertStillThere(dataContext); dataContext.cleanup(); assertCleanedUp(dataContext); }
@Test public void cleanupUsesExecutor() throws IOException { TestShuffleDataContext dataContext = createSomeData(); AtomicBoolean cleanupCalled = new AtomicBoolean(false); // Executor which does nothing to ensure we're actually using it. Executor noThreadExecutor = runnable -> cleanupCalled.set(true); ExternalShuffleBlockResolver manager = new ExternalShuffleBlockResolver(conf, null, noThreadExecutor); manager.registerExecutor("app", "exec0", dataContext.createExecutorInfo(SORT_MANAGER)); manager.applicationRemoved("app", true); assertTrue(cleanupCalled.get()); assertStillThere(dataContext); dataContext.cleanup(); assertCleanedUp(dataContext); }