flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-1977] Rework Stream Operators to always...
Date Thu, 07 May 2015 14:05:55 GMT
Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/659#discussion_r29854456
  
    --- 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 --
    
    can you call a output collector in close() ? As least for the batch part, I though that's
dangerous.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message