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