m-trieu commented on code in PR #31317:
URL: https://github.com/apache/beam/pull/31317#discussion_r1610649902


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/client/grpc/GrpcDispatcherClient.java:
##########
@@ -101,11 +104,19 @@ ImmutableSet<HostAndPort> getDispatcherEndpoints() {
     return dispatcherStubs.get().dispatcherEndpoints();
   }
 
-  CloudWindmillMetadataServiceV1Alpha1Stub getWindmillMetadataServiceStub() {
+  /** Will block the calling thread until the initial endpoints are present. */
+  CloudWindmillMetadataServiceV1Alpha1Stub 
getWindmillMetadataServiceStubBlocking() {
+    try {
+      onInitializedEndpoints.await();

Review Comment:
   done



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