dpcollins-google commented on a change in pull request #16992:
URL: https://github.com/apache/beam/pull/16992#discussion_r818022213
##########
File path:
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingModeExecutionContext.java
##########
@@ -481,6 +481,25 @@ String getStateFamily(NameContext nameContext) {
return nameContext.userName() == null ? null :
stateNameMap.get(nameContext.userName());
}
+ private static class ScopedReadStateSupplier implements Supplier<Closeable> {
+ private final ExecutionState readState;
+ private final @Nullable ExecutionStateTracker stateTracker;
+
+ ScopedReadStateSupplier(
+ DataflowOperationContext operationContext, ExecutionStateTracker
stateTracker) {
+ this.readState = operationContext.newExecutionState("windmill-read");
Review comment:
Nack- this would be a change in the code, I'm not sure that the fact of
calling newExecutionState but never entering is a no-op.
--
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]