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-14434][coordination] Dispatcher#createJobManagerRunner returns on creation succeed #9940
Conversation
… on creation succeed
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit baacecb (Thu Oct 24 18:02:28 UTC 2019) 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:
|
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 this PR @tisonkun. I had a comment concerning the semantics we would change with this PR and a potential idea for solving this and the original problem.
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Show resolved
Hide resolved
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.
The change is good. Merging it now. Thanks a lot for providing this fix @tisonkun.
… on creation succeed This closes apache#9940.
… on creation succeed This closes apache#9940.
… on creation succeed This closes #9940.
Thanks for your review Till! |
What is the purpose of the change
Fixes a race condition described detailedly in FLINK-14434.
Brief change log
Let
Dispatcher#createJobManagerRunner
returns on creation succeed.Verifying this change
I think this change is straightforward and current behavior doesn't break guarded by existing tests. The diff attached on corresponding JIRA can reproduce the issue but I'm afraid it is always invasive to emulate this case(add a debug latch between
jobManagerRunner.start
andreturn
for testing hook in my mind). Due to the change is straightforward and easy to reason, I tend to avoid invasive testing hook.Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation