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_r294128294
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java
 ##########
 @@ -225,6 +226,21 @@ public void prepareSnapshotPreBarrier(long checkpointId) 
throws Exception {
                }
        }
 
+       /**
+        * Starting from the second operator, go forward through the operator 
chain to notify
+        * each operator that its input has ended.
+        *
+        * @throws Exception if some exception happens in the endInput function 
of an operator.
+        */
+       public void endOperatorInputs() throws Exception {
+               for (int i = allOperators.length - 2; i >= 0; i--) {
 
 Review comment:
   Maybe we can use the following structure?

----------------------------------------------------------------
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

Reply via email to