sakthivelmanii commented on code in PR #37433:
URL: https://github.com/apache/beam/pull/37433#discussion_r2744448433


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerAccessor.java:
##########
@@ -265,6 +272,14 @@ static SpannerOptions buildSpannerOptions(SpannerConfig 
spannerConfig) {
       builder.setCredentials(credentials.get());
     }
 
+    ValueProvider<java.time.Duration> waitForSessionCreationDuration =
+        spannerConfig.getWaitForSessionCreationDuration();
+    java.time.Duration waitDuration = 
Optional.ofNullable(waitForSessionCreationDuration)
+        .map(ValueProvider::get)
+        .orElse(DEFAULT_SESSION_WAIT_DURATION);
+    builder.setSessionPoolOption(
+        
SessionPoolOptions.newBuilder().setWaitForMinSessionsDuration(waitDuration).build());

Review Comment:
   No. This is related to DEADLINE EXCEEDED in dataflow workers.  b/462499883



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