@Override public void jobStatusChanges(JobID jobId, JobStatus newJobStatus, long timestamp, Throwable error) { if (newJobStatus == JobStatus.RUNNING) { // start the checkpoint scheduler coordinator.startCheckpointScheduler(); } else { // anything else should stop the trigger for now coordinator.stopCheckpointScheduler(); } } }
@Override public void jobStatusChanges(JobID jobId, JobStatus newJobStatus, long timestamp, Throwable error) { if (newJobStatus == JobStatus.RUNNING) { // start the checkpoint scheduler coordinator.startCheckpointScheduler(); } else { // anything else should stop the trigger for now coordinator.stopCheckpointScheduler(); } } }
@Override public void jobStatusChanges(JobID jobId, JobStatus newJobStatus, long timestamp, Throwable error) { if (newJobStatus == JobStatus.RUNNING) { // start the checkpoint scheduler coordinator.startCheckpointScheduler(); } else { // anything else should stop the trigger for now coordinator.stopCheckpointScheduler(); } } }
@Override public void jobStatusChanges(JobID jobId, JobStatus newJobStatus, long timestamp, Throwable error) { if (newJobStatus == JobStatus.RUNNING) { // start the checkpoint scheduler coordinator.startCheckpointScheduler(); } else { // anything else should stop the trigger for now coordinator.stopCheckpointScheduler(); } } }
private void startCheckpointScheduler(final CheckpointCoordinator checkpointCoordinator) { if (checkpointCoordinator.isPeriodicCheckpointingConfigured()) { try { checkpointCoordinator.startCheckpointScheduler(); } catch (IllegalStateException ignored) { // Concurrent shut down of the coordinator } } }
private void startCheckpointScheduler(final CheckpointCoordinator checkpointCoordinator) { if (checkpointCoordinator.isPeriodicCheckpointingConfigured()) { try { checkpointCoordinator.startCheckpointScheduler(); } catch (IllegalStateException ignored) { // Concurrent shut down of the coordinator } } }
private void startCheckpointScheduler(final CheckpointCoordinator checkpointCoordinator) { if (checkpointCoordinator.isPeriodicCheckpointingConfigured()) { try { checkpointCoordinator.startCheckpointScheduler(); } catch (IllegalStateException ignored) { // Concurrent shut down of the coordinator } } }
public void resetExecutionVerticesAndNotify(long modVersion, List<ExecutionVertex> executionVertices) throws Exception { final long resetTimestamp = System.currentTimeMillis(); List<ExecutionVertexID> evIds = new ArrayList<>(executionVertices.size()); for (ExecutionVertex ev : executionVertices) { ev.resetForNewExecution(resetTimestamp, modVersion); evIds.add(ev.getExecutionVertexID()); } // if we have checkpointed state, reload it into the executions // we restart scheduler to ensure EXACTLY_ONCE mechanism and // to trigger new checkpoint without having to wait for old checkpoint expired if (checkpointCoordinator != null) { checkpointCoordinator.stopCheckpointScheduler(); checkpointCoordinator.restoreLatestCheckpointedState(executionVertices, false, true); checkpointCoordinator.startCheckpointScheduler(); } graphManager.notifyExecutionVertexFailover(evIds); }
checkpointCoordinator.startCheckpointScheduler();
checkpointCoordinator.startCheckpointScheduler();
checkpointCoordinator.startCheckpointScheduler();
checkpointCoordinator.startCheckpointScheduler();