GitHub user kl0u opened a pull request: https://github.com/apache/flink/pull/3541
[FLINK-6032] [cep] Clean-up operator state when not needed. The CEP operator now cleans the registered state for a key. This happens: 1) for the priority queue, when the queue is empty. 2) for the NFA, when its shared buffer is empty. 3) the key is removed from the `InternalWatermarkCallbackService` when both of the above are empty. You can merge this pull request into a Git repository by running: $ git pull https://github.com/kl0u/flink cep-state-cleanup Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3541.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 #3541 ---- commit 7a5d5a348d0784599f96f9fa8d12dce72924814f Author: kl0u <kklou...@gmail.com> Date: 2017-03-13T19:36:57Z [FLINK-6032] [cep] Clean-up operator state when not needed. The CEP operator now cleans the registered state for a key. This happens: 1) for the priority queue, when the queue is empty. 2) for the NFA, when its shared buffer is empty. ---- --- 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. ---