@Override public void run() { try { subtaskState.discardState(); } catch (Throwable t2) { LOG.warn("Could not properly discard state object of checkpoint {} " + "belonging to task {} of job {}.", checkpointId, executionAttemptID, jobId, t2); } } });
@Override public void run() { try { subtaskState.discardState(); } catch (Throwable t2) { LOG.warn("Could not properly discard state object of checkpoint {} " + "belonging to task {} of job {}.", checkpointId, executionAttemptID, jobId, t2); } } });
@Override public void run() { try { subtaskState.discardState(); } catch (Throwable t2) { LOG.warn("Could not properly discard state object of checkpoint {} " + "belonging to task {} of job {}.", checkpointId, executionAttemptID, jobId, t2); } } });
/** * Helper method that discards state objects with an executor and reports exceptions to the log. */ private void discardLocalStateForCheckpoint(long checkpointID, TaskStateSnapshot o) { if (LOG.isTraceEnabled()) { LOG.trace("Discarding local task state snapshot of checkpoint {} for subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex); } else { LOG.debug("Discarding local task state snapshot {} of checkpoint {} for subtask ({} - {} - {}).", o, checkpointID, jobID, jobVertexID, subtaskIndex); } try { o.discardState(); } catch (Exception discardEx) { LOG.warn("Exception while discarding local task state snapshot of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, discardEx); } LocalRecoveryDirectoryProvider directoryProvider = localRecoveryConfig.getLocalStateDirectoryProvider(); File checkpointDir = directoryProvider.subtaskSpecificCheckpointDirectory(checkpointID); LOG.debug("Deleting local state directory {} of checkpoint {} for subtask ({} - {} - {}).", checkpointDir, checkpointID, jobID, jobVertexID, subtaskIndex); try { deleteDirectory(checkpointDir); } catch (IOException ex) { LOG.warn("Exception while deleting local state directory of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, ex); } }
/** * Helper method that discards state objects with an executor and reports exceptions to the log. */ private void discardLocalStateForCheckpoint(long checkpointID, TaskStateSnapshot o) { if (LOG.isTraceEnabled()) { LOG.trace("Discarding local task state snapshot of checkpoint {} for subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex); } else { LOG.debug("Discarding local task state snapshot {} of checkpoint {} for subtask ({} - {} - {}).", o, checkpointID, jobID, jobVertexID, subtaskIndex); } try { o.discardState(); } catch (Exception discardEx) { LOG.warn("Exception while discarding local task state snapshot of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, discardEx); } LocalRecoveryDirectoryProvider directoryProvider = localRecoveryConfig.getLocalStateDirectoryProvider(); File checkpointDir = directoryProvider.subtaskSpecificCheckpointDirectory(checkpointID); LOG.debug("Deleting local state directory {} of checkpoint {} for subtask ({} - {} - {}).", checkpointDir, checkpointID, jobID, jobVertexID, subtaskIndex); try { deleteDirectory(checkpointDir); } catch (IOException ex) { LOG.warn("Exception while deleting local state directory of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, ex); } }
/** * Helper method that discards state objects with an executor and reports exceptions to the log. */ private void discardLocalStateForCheckpoint(long checkpointID, TaskStateSnapshot o) { if (LOG.isTraceEnabled()) { LOG.trace("Discarding local task state snapshot of checkpoint {} for subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex); } else { LOG.debug("Discarding local task state snapshot {} of checkpoint {} for subtask ({} - {} - {}).", o, checkpointID, jobID, jobVertexID, subtaskIndex); } try { o.discardState(); } catch (Exception discardEx) { LOG.warn("Exception while discarding local task state snapshot of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, discardEx); } LocalRecoveryDirectoryProvider directoryProvider = localRecoveryConfig.getLocalStateDirectoryProvider(); File checkpointDir = directoryProvider.subtaskSpecificCheckpointDirectory(checkpointID); LOG.debug("Deleting local state directory {} of checkpoint {} for subtask ({} - {} - {}).", checkpointDir, checkpointID, jobID, jobVertexID, subtaskIndex); try { deleteDirectory(checkpointDir); } catch (IOException ex) { LOG.warn("Exception while deleting local state directory of checkpoint {} in subtask ({} - {} - {}).", checkpointID, jobID, jobVertexID, subtaskIndex, ex); } }