-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-20654][checkpointing] Decline checkpoints until restored channel state is consumed #14509
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 c020556 (Fri May 28 06:58:28 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:
|
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 % one comment and compilation failure
...rc/test/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGateTest.java
Show resolved
Hide resolved
89cc24d to
ad643ba
Compare
flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointITCase.java
Show resolved
Hide resolved
72bcb26 to
eda1fc4
Compare
...reaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamTaskNetworkInput.java
Show resolved
Hide resolved
...reaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamTaskNetworkInput.java
Show resolved
Hide resolved
…kpointITCase Most of the bugs in UC are revealed with higher back-pressure which is not created with alignment timeout. This change disables it by default and adds a new test (p=20) with the timeout enabled.
In StreamTaskNetworkInput.prepareSnapshot, internal channelIndex is inconsistent with CheckpointedInputGate channelIndex. This change fixes data loss in UnalignedCheckpointITCase.cogroup.
…el state is consumed In scenarios with multiple inputs (e.g. co-group; not union) one input may receive a checkpoint barrier while the second input is still restoring state. This (previous) state is currently not included into the snapshot, which therefore will be incomplete.
… snapshotState This reduces the number of failures in UnalignedCheckpointITCase.union to ~2/100.
What is the purpose of the change
In scenarios with multiple inputs (e.g. co-group; not union) one input may receive a
checkpoint barrier while the second input is still restoring state. This (previous)
state is currently not included into the snapshot, which therefore will be incomplete.
Brief change log
Verifying this change
SingleInputGateTest#testCheckpointsDeclinedUnlessStateConsumed.Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation