cleanup(); } catch (Exception cleanupException) { e.addSuppressed(cleanupException);
@Override public void close() { if (asyncCheckpointState.compareAndSet( CheckpointingOperation.AsyncCheckpointState.RUNNING, CheckpointingOperation.AsyncCheckpointState.DISCARDED)) { try { cleanup(); } catch (Exception cleanupException) { LOG.warn("Could not properly clean up the async checkpoint runnable.", cleanupException); } } else { logFailedCleanupAttempt(); } }
cleanup(); } catch (Exception cleanupException) { e.addSuppressed(cleanupException);
cleanup(); } catch (Exception cleanupException) { e.addSuppressed(cleanupException);
@Override public void close() { if (asyncCheckpointState.compareAndSet( CheckpointingOperation.AsyncCheckpointState.RUNNING, CheckpointingOperation.AsyncCheckpointState.DISCARDED)) { try { cleanup(); } catch (Exception cleanupException) { LOG.warn("Could not properly clean up the async checkpoint runnable.", cleanupException); } } else { logFailedCleanupAttempt(); } }
@Override public void close() { if (asyncCheckpointState.compareAndSet( CheckpointingOperation.AsyncCheckpointState.RUNNING, CheckpointingOperation.AsyncCheckpointState.DISCARDED)) { try { cleanup(); } catch (Exception cleanupException) { LOG.warn("Could not properly clean up the async checkpoint runnable.", cleanupException); } } else { logFailedCleanupAttempt(); } }
public void runAsyncCheckpointingAndAcknowledge() throws IOException { AsyncCheckpointRunnable asyncCheckpointRunnable = new AsyncCheckpointRunnable( owner, nonPartitionedStates, snapshotInProgressList, checkpointMetaData, checkpointMetrics, startAsyncPartNano); owner.cancelables.registerClosable(asyncCheckpointRunnable); owner.asyncOperationsThreadPool.submit(asyncCheckpointRunnable); }
@Override public void close() { try { cleanup(); } catch (Exception cleanupException) { LOG.warn("Could not properly clean up the async checkpoint runnable.", cleanupException); } }
new StreamTask.AsyncCheckpointRunnable( testStreamTask, snapshots, 0L); checkpointRunnable.run();