-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-16753] Use CheckpointException to wrap exceptions thrown from AsyncCheckpointRunnable #11509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 8bcdb46 (Wed Mar 25 12:18:30 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
geektcp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
Thanks for the contribution, the change LGTM, could you please update the commit message? |
8bcdb46 to
f2abe6b
Compare
|
@klion26 Thanks for your review. The commit message is updated. |
|
Hi @Jiayi-Liao , can you rebase the codes based on the recent master? Then i can take over to further review it. |
f2abe6b to
e01cd51
Compare
@zhijiangW Thanks for the review. The rebase is done. |
...ing-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
Outdated
Show resolved
Hide resolved
|
@zhijiangW The PR should be good now. Could you take another look? |
zhijiangW
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @Jiayi-Liao , LGTM!
…ns thrown from AsyncCheckpointRunnable This closes apache#11509.
What is the purpose of the change
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. We should replace #CheckpointFailureReason.JOB_FAILURE with #CheckpointFailureReason.EXCEPTION, otherwise user will see "The job has failed" on Checkpoint UI.
Brief change log
Use #CheckpointException to wrap the exception thrown from #AsyncCheckpointRunnable.
Verifying this change
A trival rework without testing.
Does this pull request potentially affect one of the following parts:
This change will correct the error message when circumstances mentioned above happen.
Documentation
No need.