sunhaibotb commented on a change in pull request #8731: [FLINK-11878][runtime]
Implement the runtime handling of BoundedOneInput and BoundedMultiInput
URL: https://github.com/apache/flink/pull/8731#discussion_r293739870
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamInputProcessor.java
##########
@@ -174,6 +179,18 @@ private void initializeNumRecordsIn() {
}
}
+ private boolean checkFinished() throws Exception {
+ boolean isFinished = input.isFinished();
+ if (isFinished) {
+ if (streamOperator instanceof BoundedOneInput) {
Review comment:
> Why here are you endInput for the head operator and inside the task for
the rest of the operators?
The reason is that we don't want `xInputProcessor` to see `OperatorChain`
(or other operators). If we change this point and let `xInputProcessor` see
`OperatorChain` (or other operators), we can do all works in `xInputProcessor`.
What do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services