Skip to content

Commit

Permalink
[HotFix][Zeta] fix after the savepoint job is restored, the checkpoin…
Browse files Browse the repository at this point in the history
…t file cannot be generated #4985 (#5051)

* fix after the savepoint job is restored, the checkpoint file cannot be generated
  • Loading branch information
wu-a-ge authored Jul 11, 2023
1 parent 7ba11ce commit 7ed3728
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,19 @@ public CheckpointCoordinator(
this.checkpointIdCounter = checkpointIdCounter;
this.readyToCloseStartingTask = new CopyOnWriteArraySet<>();
if (pipelineState != null) {
this.latestCompletedCheckpoint =
// fix after the savepoint job is restored, the checkpoint file cannot be generated
CompletedCheckpoint tmpCheckpoint =
serializer.deserialize(pipelineState.getStates(), CompletedCheckpoint.class);
this.latestCompletedCheckpoint =
new CompletedCheckpoint(
tmpCheckpoint.getJobId(),
tmpCheckpoint.getPipelineId(),
tmpCheckpoint.getCheckpointId(),
tmpCheckpoint.getCheckpointTimestamp(),
CheckpointType.CHECKPOINT_TYPE,
tmpCheckpoint.getCompletedTimestamp(),
tmpCheckpoint.getTaskStates(),
tmpCheckpoint.getTaskStatistics());
}
this.checkpointCoordinatorFuture = new CompletableFuture();

Expand Down

0 comments on commit 7ed3728

Please sign in to comment.