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-13764][task, metrics] Pass the counter of numRecordsIn into the constructor of StreamInputProcessor #9476
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 8effe87 (Tue Aug 27 09:13:45 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:
|
@flinkbot run travis |
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
+1 for the commits split :)
I think the test failure is unrelated (https://issues.apache.org/jira/browse/FLINK-13772), so you can merge this as you wish (or try to rebase and re-run the travis to be sure). Also you can ignore my nitty nit comment if you choose so.
...eaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamOneInputProcessor.java
Outdated
Show resolved
Hide resolved
Thanks for the review @pnowojski ! I would rebase to merge after travis green. :) |
… constructor of StreamInputProcessor Currently the counter of numRecordsIn is setup while processing input in processor. In order to integrate the processing logic based on StreamTaskInput#emitNext(Output) later, we need to pass the counter into output functions then. So there are three reasons to do this: It is the precondition of following integration work. We could make the counter as final fields in StreamOneInputProcessor and StreamTwoInputSelectableProcessor. We could reuse the counter setup logic for all the input processors. There should be no side effects if we make the counter setup a bit earlier than the previous way.
@flinkbot run travis |
What is the purpose of the change
Currently the counter of
numRecordsIn
is setup while processing input in processor. In order to integrate the processing logic based onStreamTaskInput#emitNext(Output)
later, we need to pass the counter into output functions then. So there are three reasons to do this:StreamInputProcessor
andStreamTwoInputSelectableProcessor
.There should be no side effects if we make the counter setup a bit earlier than the previous way.
Brief change log
numRecordsIn
counter inStreamTask
StreamOne/TwoInputProcessors
StreamOne/TwoInputProcessors
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)
: (yes / no)Documentation