arunpandianp commented on code in PR #35523:
URL: https://github.com/apache/beam/pull/35523#discussion_r2204045126


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/client/AbstractWindmillStream.java:
##########
@@ -472,17 +505,74 @@ private void clearPhysicalStreamForDebug() {
     currentPhysicalStreamForDebug.set(null);
   }
 
+  private void onHalfClosePhysicalStreamTimeout(PhysicalStreamHandler handler) 
{
+    synchronized (this) {
+      if (currentPhysicalStream != handler || clientClosed || isShutdown) {
+        return;
+      }
+      try {
+        handler.streamDebugMetrics.recordHalfClose();
+        closingPhysicalStreams.add(handler);
+        currentPhysicalStream = null;
+        halfCloseFuture = null; // This is the currently running future.
+        clearPhysicalStreamForDebug();
+        requestObserver.onCompleted();
+      } catch (Exception e) {
+        // XXX figure out
+      }
+      try {
+        @NonNull PhysicalStreamHandler streamHandler = newResponseHandler();

Review Comment:
   can we call startStream() here instead? 
   



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