reuvenlax commented on code in PR #41541:
URL: https://github.com/apache/beam/pull/41541#discussion_r4743945592
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/DataflowOperationContext.java:
##########
@@ -117,9 +144,18 @@ public Closeable enterStart() {
return enter(startState);
}
+ /**
+ * Enters the {@code process} execution state.
+ *
+ * <p>For allocation-free execution, the returned {@link Closeable} may be
reused across
+ * sequential calls on the execution thread. Callers must always pair it via
{@code
Review Comment:
Clarified the Javadoc: DataflowOperationContext itself reuses the same
internal Closeable instance across sequential enterProcess() calls (callers
don't reuse handles — they just close each handle once via try-with-resources
before the next enterProcess() call).
--
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]