kennknowles commented on a change in pull request #16458:
URL: https://github.com/apache/beam/pull/16458#discussion_r781517475



##########
File path: 
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/FnApiDoFnRunner.java
##########
@@ -1720,6 +1736,23 @@ public Object restriction() {
     doFnInvoker.invokeOnTimer(timerId, timerFamilyId, onTimerContext);
   }
 
+  private <K> void processOnWindowExpiration(Timer<K> timer) {
+    try {
+      currentKey = timer.getUserKey();
+      currentTimer = timer;
+      Iterator<BoundedWindow> windowIterator =

Review comment:
       Ah yes, I see that you are mutating a field so that the nested instance 
can carry it to the invoker. Gotta say there's quite a lot of implicit data 
flows here. I understand it is mutation for efficiency. Might be worth thinking 
about how to make them more explicit and local.




-- 
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]


Reply via email to