-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-22085][tests] Update NetworkFailureHandler to prevent closeOnFlush() from being called recursively #15633
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 70809b0 (Fri May 28 09:10:37 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. The 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:
|
Ping @dawidwys @becketqin for review. |
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 your findings and a fix @lindong28 !
Could you @pnowojski take a look at the PR if it makes sense to you? Especially the explanation in the corresponding JIRA ticket?
...parent/flink-test-utils/src/main/java/org/apache/flink/networking/NetworkFailureHandler.java
Outdated
Show resolved
Hide resolved
...parent/flink-test-utils/src/main/java/org/apache/flink/networking/NetworkFailureHandler.java
Outdated
Show resolved
Hide resolved
Looks good from my side. Still I'd wait for a review from @pnowojski |
I don't really remember the code, but from a quick look this change makes sense to me as well. |
…lush() from being called recursively
Thank you @dawidwys for the helpful comments. I have updated the PR as suggested. Could you take another look? |
Thank you @lindong28 for your contribution! The failure is unrelated. Merging... |
Contribution Checklist
This PR updated NetworkFailureHandler to prevent closeOnFlush() from being called recursively. The test might hang indefinitely without this change.
Brief change log
This PR updated NetworkFailureHandler to prevent closeOnFlush() from being called recursively.
Verifying this change
Verified that KafkaSourceLegacyITCase::testBrokerFailure could hang before this PR. And the same test could consistently pass across 200 runs after this PR.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation