[
https://issues.apache.org/jira/browse/FLINK-40237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151551#comment-18151551
]
Martijn Visser commented on FLINK-40237:
----------------------------------------
Reproduced through MATCH_RECOGNIZE with {{ORDER BY proctime}} and {{WITHIN}}:
1000 short-lived keys each leave one state entry behind after an hour.
https://github.com/apache/flink/pull/28822 has no review yet.
> CepOperator does not clean up expired NFA state in processing-time timer
> callbacks
> ----------------------------------------------------------------------------------
>
> Key: FLINK-40237
> URL: https://issues.apache.org/jira/browse/FLINK-40237
> Project: Flink
> Issue Type: Bug
> Components: Library / CEP
> Environment:
>
>
> Reporter: YuXiang Zhou
> Priority: Major
> Labels: pull-request-available
>
> This is a follow-up to FLINK-32701
> (https://issues.apache.org/jira/browse/FLINK-32701).
> CepOperator cleans up dangling NFA state in onEventTime(), but the equivalent
> cleanup is missing from onProcessingTime().
> onProcessingTime() should apply the same cleanup logic as onEventTime() and
> clear computationStates when only the initial partial match remains and there
> are no completed matches.
>
>
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)