je-ik commented on code in PR #25554:
URL: https://github.com/apache/beam/pull/25554#discussion_r1118751090


##########
runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/io/UnboundedSourceWrapper.java:
##########
@@ -391,6 +391,9 @@ public void snapshotState(FunctionSnapshotContext 
functionSnapshotContext) throw
         return;
       }
 
+      ReaderInvocationUtil<OutputT, UnboundedSource.UnboundedReader<OutputT>> 
readerInvoker =
+          new ReaderInvocationUtil<>(stepName, serializedOptions.get(), 
metricContainer);

Review Comment:
   This can be moved to a field and reused between calls to `run` and 
`snapshotState`.



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