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

    https://github.com/apache/flink/pull/659#discussion_r29855036
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/operators/windowing/StreamDiscretizer.java
 ---
    @@ -183,6 +173,16 @@ public void 
open(org.apache.flink.configuration.Configuration parameters) throws
                }
        }
     
    +   @Override
    +   public void close() throws Exception {
    +           super.close();
    +           if (activePolicyThread != null) {
    +                   activePolicyThread.interrupt();
    +           }
    +
    +           emitWindow();
    --- End diff --
    
    I think it's fine in streaming. open(), receiveElement(), close() are all 
called in the inner loop of StreamTask.invoke()


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