Skip to content

Commit

Permalink
[hotfix] Improve language for error message when checkpoint is declin…
Browse files Browse the repository at this point in the history
…ed due to some tasks being finished already.
  • Loading branch information
StephanEwen committed Sep 10, 2021
1 parent d79bb47 commit ed3b613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ private void onTriggerFailure(@Nullable PendingCheckpoint checkpoint, Throwable
}
} else {
LOG.info(
"Failed to trigger checkpoint for job {} since {}",
"Failed to trigger checkpoint for job {} because {}",
job,
throwable.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ public CompletableFuture<CheckpointPlan> calculateCheckpointPlan() {
try {
if (context.hasFinishedTasks() && !allowCheckpointsAfterTasksFinished) {
throw new CheckpointException(
String.format(
"some tasks of job %s has been finished, abort the checkpoint",
jobId),
"Some tasks of the job have already finished and checkpointing with finished tasks is not enabled.",
CheckpointFailureReason.NOT_ALL_REQUIRED_TASKS_RUNNING);
}

Expand Down

0 comments on commit ed3b613

Please sign in to comment.