-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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-23842][coordination] Add logging statements in SourceCoordinators for reader registration and split requests. #16867
Conversation
…ors for reader registration and split requests.
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 70b7b49 (Tue Aug 17 16:57:13 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:
|
From some offline discussions, this looks like a good improvement. Would merge this unless there are objections... |
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 creating this PR @StephanEwen. I am wondering whether the added information shouldn't rather be logged on debug level or do you think that this information will be helpful for a Flink user?
Somewhat related: We seem to output duplicate log information when debug log level is enabled.
LOG.info( | ||
"Source {} received split request from parallel task {}", | ||
operatorName, | ||
subtask); |
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 am wondering whether this information is really helpful for a user of Flink. My spontaneous gut feeling is that it could also be logged on debug log level. This, however, already happens a couple of lines above.
Hence, I guess the first question is whether this is information we want to expose to every user. If yes, then we should probably change the LOG.debug
line above to not log duplicate information on debug log level.
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.
Let me try and deduplicate these lines.
I think in general, this is good information. Like in batch mode, when a source processes multiple splits, you don't see any progress being logged on the JM side.
Addressed the comments and will merge this now... |
…ors for reader registration and split requests. This closes apache#16867
…ors for reader registration and split requests. This closes apache#16867
…ors for reader registration and split requests. This closes apache#16867
…ors for reader registration and split requests. This closes apache#16867
…ors for reader registration and split requests. This closes apache#16867
What is the purpose of the change
Previously, there were no log statements when source enumerators get reader registration events, or when they receive split requests.
While some specific source implementations log this in their implementation, for the general case, this information were missing, even though it is super valuable when debugging and understanding the work assignment behavior.
This PR adds these log statements.
Main question to consider during the review: Would the log volume be too high?