olavloite commented on code in PR #26727:
URL: https://github.com/apache/beam/pull/26727#discussion_r1196734723


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerAccessor.java:
##########
@@ -113,6 +113,9 @@ private static SpannerAccessor 
createAndConnect(SpannerConfig spannerConfig) {
     SpannerOptions.Builder builder = SpannerOptions.newBuilder();
 
     Set<Code> retryableCodes = new HashSet<>();
+    // Add default retryable codes
+    retryableCodes.addAll(
+        
builder.getSpannerStubSettingsBuilder().executeStreamingSqlSettings().getRetryableCodes());

Review Comment:
   We are taking the retryable codes from the `executeStreamingSql` RPC here, 
and then apply that to the `executeStreamingSql` __and__ to all unary RPCs 
below. I don't think we should be doing the latter. Are there any specific 
unary RPCs that we want to set the retryable codes for? Or do we really want to 
set them for __all__ of them? E.g. this takes the default retryable codes of 
`ExecuteStreamingSql` and then applies them to RPCs like `Commit`.



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