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

    https://github.com/apache/incubator-apex-core/pull/185#discussion_r48897460
  
    --- Diff: 
engine/src/main/java/com/datatorrent/stram/engine/GenericNode.java ---
    @@ -343,12 +389,15 @@ else if (!doCheckpoint) {
                      * we will receive tuples which are equal to the number of 
input streams.
                      */
                     activePort.remove();
    -                buffers.remove();
    +                if 
(isInputPortConnectedToDelayOperator(activePortEntry.getKey())) {
    +                  break; // breaking out of the switch/case
    +                }
     
    +                buffers.remove();
    --- End diff --
    
    if ```buffers.remove()``` is before the ```if``` condition, the port will 
not be considered as active any more for this window, which may already have 
started since the other ports may have sent BEGIN_WINDOW before we get the 
RESET_WINDOW from the port connected to the delay operator.  In that case, the 
operator would get stuck.


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