arunpandianp commented on code in PR #37574:
URL: https://github.com/apache/beam/pull/37574#discussion_r3258953588
##########
runners/core-java/src/main/java/org/apache/beam/runners/core/ReduceFnRunner.java:
##########
@@ -613,6 +642,18 @@ private void processElement(Map<W, W> windowToMergeResult,
WindowedValue<InputT>
StateStyle.RENAMED,
value.causedByDrain());
+ // TODO: Make sure the NewWindowOptimization does not create unbounded
trigger state
+ // in GlobalWindow
+ if (useNewWindowOptimization &&
triggerRunner.isNew(directContext.state())) {
+ // Blindly clear state to ensure Windmill doesn't do unnecessary reads.
Review Comment:
Done.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]