shunping commented on code in PR #38611:
URL: https://github.com/apache/beam/pull/38611#discussion_r3293718870


##########
sdks/python/apache_beam/runners/portability/expansion_service_main.py:
##########
@@ -73,15 +71,9 @@ def main(argv):
         artifact_service.ArtifactRetrievalService(
             artifact_service.BeamFilesystemHandler(None).file_reader),
         server)
-    # Ensure gRPC server successfully binds. If this fails (e.g., due to port 
collision),
-    # add_insecure_port returns 0. We raise an error to crash the subprocess 
immediately,
-    # allowing the parent process to detect it and fail fast rather than 
hanging.
-    bound_port = server.add_insecure_port(address)
-    if not bound_port:
-      raise RuntimeError(
-          "Failed to bind expansion service to {}".format(address))
+    server.add_insecure_port(address)

Review Comment:
   We have not seen such an error of port conflict so far. Keep it unchanged 
for now.



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