@Override public void run() { try { cache.shutdown(); } catch (Throwable t) { logger.error("Error during shutdown of file cache via JVM shutdown hook: " + t.getMessage(), t); } } });
fileCache.shutdown(); } catch (Throwable t) { throwable = ExceptionUtils.firstOrSuppressed(t, throwable);
fileCache.shutdown(); } catch (Throwable t) { throwable = ExceptionUtils.firstOrSuppressed(t, throwable);
/** * Called to shut down the TaskManager. The method closes all TaskManager services. */ @Override public void shutDown() throws Exception { log.info("Stopping TaskManager {}.", getAddress()); Exception exception = null; taskSlotTable.stop(); if (isConnectedToResourceManager()) { resourceManagerConnection.close(); } jobManagerHeartbeatManager.stop(); resourceManagerHeartbeatManager.stop(); ioManager.shutdown(); memoryManager.shutdown(); networkEnvironment.shutdown(); fileCache.shutdown(); try { super.shutDown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception); } if (exception != null) { ExceptionUtils.rethrowException(exception, "Error while shutting the TaskExecutor down."); } log.info("Stopped TaskManager {}.", getAddress()); }
fileCache.shutdown(); } catch (Throwable t) { throwable = ExceptionUtils.firstOrSuppressed(t, throwable);