nielm commented on issue #31007:
URL: https://github.com/apache/beam/issues/31007#issuecomment-2063316855

   Commit deadlines for writes have been supported since 
[2020](https://issues.apache.org/jira/browse/BEAM-9269) at the RPC level and 
can be supported in 3 ways: 
   
   * using 
[Write.withCommitDeadline()](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java#L1184)
   * using 
[SpannerConfig.withCommitDeadline()](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerConfig.java#L224)
   * using 
[SpannerConfig.withCommitRetrySettings()](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerConfig.java#L255)
   
   The [default is 
15seconds](https://github.com/apache/beam/blame/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerConfig.java#L46C2-L48C35
   ) with retry and backoff, because with very long commit deadlines, a 
pipeline can push spanner into an overload situation, and reduce overall 
throughput. 


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