[
https://issues.apache.org/jira/browse/FLINK-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173546#comment-15173546
]
ASF GitHub Bot commented on FLINK-3178:
---------------------------------------
Github user aljoscha commented on the pull request:
https://github.com/apache/flink/pull/1542#issuecomment-190650790
Hi @wenlonglwl,
you are right about this. We are thinking about how we can change the
system so that finite sources can emit a final Long.MAX_VALUE watermark when
they are finished. When writing a custom finite source you can always emit a
Long.MAX_VALUE watermark yourself, once you know that the source is finished.
Sorry for the inconvenience this has caused, we first wanted to make this
right for infinite sources but I see that you also have a valid use case.
> Make Closing Behavior of Window Operators Configurable
> ------------------------------------------------------
>
> Key: FLINK-3178
> URL: https://issues.apache.org/jira/browse/FLINK-3178
> Project: Flink
> Issue Type: Improvement
> Components: Streaming
> Affects Versions: 1.0.0
> Reporter: Aljoscha Krettek
> Assignee: Aljoscha Krettek
> Priority: Blocker
> Fix For: 1.0.0
>
>
> Right now, all window operators emit (incomplete) in-flight windows when they
> are closing down. This happens for two reasons:
> 1. sources emit a final Long.MAX_VALUE watermark to flush out windows when
> they close.
> 2. window operators emit in-flight windows in their close() method
> For some users this might not be the desired behavior so we should either
> change it or make it configurable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)