Disabling retries by setting retryableCodes
to empty Set doesn't stop from retrying
#3306
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
Hello,
I am using google-cloud-spanner 6.69.0 for java. I am trying to disable retry mechanism for :
com.google.cloud.spanner.SpannerException: UNAVAILABLE: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception - Statement: 'SELECT 1'
To do that I have followed the documentation, and set:
However, this doesn't seem to have a valid effect because in the retrying loop:
java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/ResumableStreamIterator.java
Line 273 in 6b7e6ca
method
isRetryable
is defined as follows:which basically ignores retryableCodes setting, as long as exception itself is marked as retryable.
Not sure if this is a bug or intended behavior, but this still causes the retries to happen, despite setting retryableCodes to empty.
The text was updated successfully, but these errors were encountered: