void stop() { if (shutdownRequested.compareAndSet(false, true)) { synchronized (startupShutdownLock) { LOG.info("Stopping history server."); try { netty.shutdown(); } catch (Throwable t) { LOG.warn("Error while shutting down WebFrontendBootstrap.", t); } archiveFetcher.stop(); try { LOG.info("Removing web dashboard root cache directory {}", webDir); FileUtils.deleteDirectory(webDir); } catch (Throwable t) { LOG.warn("Error while deleting web root directory {}", webDir, t); } LOG.info("Stopped history server."); // Remove shutdown hook to prevent resource leaks ShutdownHookUtil.removeShutdownHook(shutdownHook, getClass().getSimpleName(), LOG); } } }
@Override public void stop() throws Exception { synchronized (startupShutdownLock) { executionGraphCleanupTask.cancel(false); executionGraphCache.close(); leaderRetrievalService.stop(); netty.shutdown(); stackTraceSamples.shutDown(); backPressureStatsTrackerImpl.shutDown(); cleanup(); } }
Assert.assertTrue(x.contains("not found")); } finally { webUI.shutdown();
bootstrap.shutdown();
void stop() { if (shutdownRequested.compareAndSet(false, true)) { synchronized (startupShutdownLock) { LOG.info("Stopping history server."); try { netty.shutdown(); } catch (Throwable t) { LOG.warn("Error while shutting down WebFrontendBootstrap.", t); } archiveFetcher.stop(); try { LOG.info("Removing web dashboard root cache directory {}", webDir); FileUtils.deleteDirectory(webDir); } catch (Throwable t) { LOG.warn("Error while deleting web root directory {}", webDir, t); } LOG.info("Stopped history server."); // Remove shutdown hook to prevent resource leaks ShutdownHookUtil.removeShutdownHook(shutdownHook, getClass().getSimpleName(), LOG); } } }
void stop() { if (shutdownRequested.compareAndSet(false, true)) { synchronized (startupShutdownLock) { LOG.info("Stopping history server."); try { netty.shutdown(); } catch (Throwable t) { LOG.warn("Error while shutting down WebFrontendBootstrap.", t); } archiveFetcher.stop(); try { LOG.info("Removing web dashboard root cache directory {}", webDir); FileUtils.deleteDirectory(webDir); } catch (Throwable t) { LOG.warn("Error while deleting web root directory {}", webDir, t); } LOG.info("Stopped history server."); // Remove shutdown hook to prevent resource leaks ShutdownHookUtil.removeShutdownHook(shutdownHook, getClass().getSimpleName(), LOG); } } }
void stop() { if (shutdownRequested.compareAndSet(false, true)) { synchronized (startupShutdownLock) { LOG.info("Stopping history server."); try { netty.shutdown(); } catch (Throwable t) { LOG.warn("Error while shutting down WebFrontendBootstrap.", t); } archiveFetcher.stop(); try { LOG.info("Removing web dashboard root cache directory {}", webDir); FileUtils.deleteDirectory(webDir); } catch (Throwable t) { LOG.warn("Error while deleting web root directory {}", webDir, t); } LOG.info("Stopped history server."); // Remove shutdown hook to prevent resource leaks, unless this is invoked by the shutdown hook itself if (shutdownHook != null && shutdownHook != Thread.currentThread()) { try { Runtime.getRuntime().removeShutdownHook(shutdownHook); } catch (IllegalStateException ignored) { // race, JVM is in shutdown already, we can safely ignore this } catch (Throwable t) { LOG.warn("Exception while unregistering HistoryServer cleanup shutdown hook."); } } } } }
@Override public void stop() throws Exception { synchronized (startupShutdownLock) { leaderRetrievalService.stop(); netty.shutdown(); stackTraceSamples.shutDown(); backPressureStatsTracker.shutDown(); executorService.shutdownNow(); cleanup(); } }
@Override public void stop() throws Exception { synchronized (startupShutdownLock) { executionGraphCleanupTask.cancel(false); executionGraphCache.close(); leaderRetrievalService.stop(); netty.shutdown(); stackTraceSamples.shutDown(); backPressureStatsTrackerImpl.shutDown(); cleanup(); } }
@Override public void stop() throws Exception { synchronized (startupShutdownLock) { executionGraphCleanupTask.cancel(false); executionGraphCache.close(); leaderRetrievalService.stop(); netty.shutdown(); stackTraceSamples.shutDown(); backPressureStatsTrackerImpl.shutDown(); cleanup(); } }