GitHub user kl0u opened a pull request: https://github.com/apache/flink/pull/3514
[FLINK-6007] Allow key removal from within the watermark callback. When deleting a key from the InternalWatermarkCallbackService, the deleted key is put into a separate set, and the actual deletion happens after the iteration over all keys has finished. To avoid checkpointing the deletion set, the actual cleanup also happens upon checkpointing. You can merge this pull request into a Git repository by running: $ git pull https://github.com/kl0u/flink watermark-callback-fix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3514.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3514 ---- commit d3a1b6e72eb56db40638c0b0889f5277c4671b61 Author: kl0u <kklou...@gmail.com> Date: 2017-03-08T19:18:18Z [FLINK-6007] Allow key removal from within the watermark callback. When deleting a key from the InternalWatermarkCallbackService, the deleted key is put into a separate set, and the actual deletion happens after the iteration over all keys has finished. To avoid checkpointing the deletion set, the actual cleanup also happens upon checkpointing. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---