-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-17073][checkpointing] Backpressure checkpointing on slow cleanup #13565
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
…e for asynchronous checkpoints cleaning via the ioExecutor. This class counts the number of checkpoints to clean and reports it to CheckpointRequestDecider. Add a test for too many checkpoints to clean.
…nt classes Pass CheckpointsCleaner and postCleanup as arguments instead of storing them in Checkpoints classes as callbacks.
Pass Executor as an argument instead of storing it as a field.
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 82386f6 (Fri May 28 07:00:20 UTC 2021) 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:
|
|
@rkhachatryan I don't see my ITest commit in this history. Does this mean that you don't want to merge this part of the code or is it just that the commit was forgotten? |
pnowojski
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.
I think @etienne-chauchot your test was squashed with the commit that was adding the feature.
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java
Show resolved
Hide resolved
Ok fair enough |
pnowojski
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.
LGTM, @rkhachatryan could you squash the fixup commit?
…tsCleaner Replace cleanup Runnable with a direct call to CheckpointsCleaner.
2d4a962 to
82386f6
Compare
|
@pnowojski, I squashed the commit but the build failed. |
|
Thanks for the contribution both @rkhachatryan and @etienne-chauchot . Merging. |
| * @param jobStatus Job state on shut down | ||
| */ | ||
| void shutdown(JobStatus jobStatus) throws Exception; | ||
| void shutdown(JobStatus jobStatus, CheckpointsCleaner checkpointsCleaner, Runnable postCleanup) throws Exception; |
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.
Why do we need the postCleanup? In the current code base I couldn't find a single usage where we don't pass () -> {} @rkhachatryan and @pnowojski? If this is not needed, can we get rid of it? I think it does not make a very nice API with the no-ops.
Moreover, it would be nice if we could update the JavaDocs if we change the signature of interfaces.
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.
postCleanup is used by checkpointsCleaner but not in case of shutting down. I agree, it should be removed (by pushing down to DefaultCompletedCheckpointStore) and javadoc added. My bad.
I've created FLINK-20847 to address this.
What is the purpose of the change
This PR includes changes from #13040 and some refactorings of new and existing code.
Verifying this change
Changes for backpressure tested by new
ZooKeeperCompletedCheckpointStoreITCase.testChekpointingPausesAndResumeWhenTooManyCheckpointstestDoes this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation