Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2629#discussion_r88720498
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java
 ---
    @@ -116,7 +116,12 @@ public OperatorChain(StreamTask<OUT, OP> 
containingTask) {
     
                        // add head operator to end of chain
                        allOps.add(headOperator);
    -                   
    +
    +                   // reverse the order of all operators so that head 
operator is at the first place.
    +                   // for chained operator with async wait operator, 
operators after wait operator have to
    +                   // wait for while until all data in the buffer in wait 
operator has done snapshot.
    +                   Collections.reverse(allOps);
    --- End diff --
    
    This won't work with emitting elements in the open method of 
`AsyncWaitOperator`, because then the downstream operators are potentially not 
yet opened when the first stream element arrives there.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to