reuvenlax commented on code in PR #41541:
URL: https://github.com/apache/beam/pull/41541#discussion_r4743948852
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/DataflowOperationContext.java:
##########
@@ -157,6 +193,96 @@ private Closeable enter(ExecutionState state) {
return executionStateTracker.enterState(state);
}
+ private interface ProcessScope extends Closeable {
+ Closeable enter();
+ }
+
+ private static final class DirectProcessScope implements ProcessScope {
Review Comment:
Done — merged DirectProcessScope and StreamingProcessScope into a single
final class ProcessScope that branches on stepStats != null in both enter() and
close(). This also fixes the nested userName == null edge case (and updated
enterState() to match via clearStreamingOnClose).
--
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]