acrites commented on code in PR #40951:
URL: https://github.com/apache/beam/pull/40951#discussion_r4448896357


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingKeyedWorkItemSideInputParDoFn.java:
##########
@@ -231,18 +233,25 @@ protected void 
onProcessWindowedValue(WindowedValue<KeyedWorkItem<K, InputT>> el
     }
     if (hasState) {
       helpers.registerStateCleanup(
-          (WindowingStrategy<?, W>) getDoFnInfo().getWindowingStrategy(), 
windowsProcessed);
+          (WindowingStrategy<?, W>) 
helpers.activeFnInfo.getWindowingStrategy(), windowsProcessed);
     }
   }
 
+  /** Returns the {@link DoFnInfo} used by this {@link 
StreamingKeyedWorkItemSideInputParDoFn}. */
+  @Override
+  public DoFnInfo<?, ?> getDoFnInfo() throws Exception {
+    return helpers.doFnInstanceManager.peek();

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]

Reply via email to