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-22227][clients] Log submitted job name, id and receiving dispa… #16881
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 223c18f (Wed Aug 18 14:29:25 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:
|
requestAndFileUploads.f1, | ||
isConnectionProblemOrServiceUnavailable())) | ||
.thenApply( | ||
response -> { |
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 get why you did it but this seems unnecessarily complicated and not intuitive. We are just abusing the response to return information we already had at the beginning because the current code structure does not readily provide access it.
This also
a) should be logged before the submission, because the operation may take a while or timeout during leader retrieval
b) should especially be logged if the request fails, which we currently don't.
I would suggest to add a Consumer<URL>
argument to sendRetriableRequest
that is called on each retry with the WebMonitorBaseUrl
.
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.
Makes sense, I'll try to change this after lunch
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.
For a) we only log job name and job id. For b) we now log both successful and failed request alongside the receiving dispatcher.
@zentol Thanks for the review! I've incorporated your suggestion, PTAL |
flink-clients/src/main/java/org/apache/flink/client/program/rest/RestClusterClient.java
Outdated
Show resolved
Hide resolved
37dbcc3
to
fcc5820
Compare
flink-clients/src/main/java/org/apache/flink/client/program/rest/RestClusterClient.java
Outdated
Show resolved
Hide resolved
…tcher when submitting job to a session cluster.
@zentol I've removed logging details about the retry attempt, PTAL |
https://issues.apache.org/jira/browse/FLINK-22227