You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/08/20 12:31:56 UTC
[GitHub] [flink] mayuehappy commented on a change in pull request #16431: [FLINK-23314][cep] State left behind for short lived keys
mayuehappy commented on a change in pull request #16431:
URL: https://github.com/apache/flink/pull/16431#discussion_r692908286
##########
File path: flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/operator/CepOperator.java
##########
@@ -328,7 +328,11 @@ public void onEventTime(InternalTimer<KEY, VoidNamespace> timer) throws Exceptio
// STEP 4
updateNFA(nfaState);
- if (!sortedTimestamps.isEmpty() || !partialMatches.isEmpty()) {
+ if (!sortedTimestamps.isEmpty()
+ || !partialMatches.isEmpty()
+ // register timer if there are counters kept, so that we can clear them up
+ // if time advances without new events
+ || partialMatches.getEventCounters().hasNext()) {
Review comment:
Hello, is there any possibility of not registering the timer here?
I may have found a performance problem caused by registering the timer, which may have something to do with the code in this place. Can you take a look at this issue if possible? [](https://issues.apache.org/jira/browse/FLINK-23890)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org