rkhachatryan commented on a change in pull request #10151: [FLINK-14231] Handle 
the processing-time timers before closing operator to properly support endInput
URL: https://github.com/apache/flink/pull/10151#discussion_r352052385
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
 ##########
 @@ -1395,6 +1381,114 @@ private void 
checkpointStreamOperator(StreamOperator<?> op) throws Exception {
                }
        }
 
+       /**
+        * This class executes {@link StreamOperator#close()} of all operators 
in the chain
+        * of this {@link StreamTask} one by one through the mailbox thread. 
Closing happens
+        * from <b>head to tail</b> operator in the chain, contrary to {@link 
StreamOperator#open()}
+        * which happens <b>tail to head</b> (see {@link #openAllOperators()}.
 
 Review comment:
   I think that `StreamOperatorWrapper` still has all those 3 advantages above. 
   It only needs to know about **his** operator's timer service. And it's still 
simpler, as we don't need to find the next operator.

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