klion26 commented on a change in pull request #7344: [FLINK-4369] Optimize
evict performance for the TriggerResult.FIRE_AND_PURGE
URL: https://github.com/apache/flink/pull/7344#discussion_r243864636
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java
##########
@@ -179,7 +179,7 @@ public void merge(W mergeResult,
// if we have no state, there
is nothing to do
continue;
}
- emitWindowContents(actualWindow,
contents, evictingWindowState);
+ emitWindowContents(actualWindow,
contents, evictingWindowState, triggerResult.isPurge());
}
if (triggerResult.isPurge()) {
Review comment:
Does the `if (triggerResult.isPurge())` still needed? Could we do both the
emit and purge operation in the new function
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services