Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.10.0, 1.11.0, 1.11.1
Description
If an exception is thrown from task's async checkpoint process, the checkpoint will be declined as expected, but the reason for declining checkpoint will be regarded as CheckpointFailureReason.JOB_FAILURE, which gives a wrong message to users.
I think we can simply replace
owner.getEnvironment().declineCheckpoint(checkpointMetaData.getCheckpointId(), checkpointException);
with
owner.getEnvironment().declineCheckpoint(checkpointMetaData.getCheckpointId(), new CheckpointException(CheckpointFailureReason.EXCEPTION, checkpointException));
in AsyncCheckpointRunnable.handleExecutionException.
Attachments
Attachments
Issue Links
- is duplicated by
-
FLINK-20099 HeapStateBackend checkpoint error hidden under cryptic message
- Closed
- relates to
-
FLINK-18962 Improve error message if checkpoint directory is not writable
- Closed
- links to