-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-32098][runtime] Dispatcher#submitJob calls Dispatcher#isInGloballyTerminalState up to three times which might be expensive due to IO #22585
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
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
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.
Sorry for not getting back on that one earlier, @reswqa Thanks for working on it. I have a few minor comments. PTAL
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
Show resolved
Hide resolved
8066c5b
to
58683f5
Compare
It doesn't matter. Thanks @XComp for picking this up!
The results returned may be different between multiple calls to |
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java
Outdated
Show resolved
Hide resolved
I have updated this but seems that this pull request page does not perceive this new commit. This is strange because the corresponding fork branch(https://github.com/reswqa/flink/commits/FLINK-32098-reduce-io) has already been updated. I don't know if it's my network issue or Github's service issue. |
I suspect it to be a Github issue. I'm gonna check again tomorrow |
@flinkbot run azure |
1 similar comment
@flinkbot run azure |
It seems that CI is very unstable caused by https://issues.apache.org/jira/projects/FLINK/issues/FLINK-32632. |
I'm looking into FLINK-32632 and will get back to you on that PR afterwards |
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 👍 Let's wait for CI to become stable again to have a final green CI run before merging.
@reswqa can you rebase the branch to most-recent master? FLINK-32632 is resolved. |
…allyTerminalState up to three times which might be expensive due to IO
a0b328a
to
6fc03aa
Compare
Thanks for your reminder and efforts to fix FLINK-32632 👍 I have rebased this to latest master. |
The 1.18 release managers allowed to merge this change even after the feature freeze (see ML discussion). I'm going to go ahead and merge this change. |
What is the purpose of the change
Dispatcher#submitJob
callsDispatcher#isInGloballyTerminalState
up to three times which might be expensive due to IO.Brief change log
isInGloballyTerminalState
once inDispatcher#submitJob
.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation