Skip to content

fix(spanner): Fix blind retry for ResourceExhausted#12523

Merged
sakthivelmanii merged 3 commits intomainfrom
fix_blind_retry_for_resource_exhausted
Jul 8, 2025
Merged

fix(spanner): Fix blind retry for ResourceExhausted#12523
sakthivelmanii merged 3 commits intomainfrom
fix_blind_retry_for_resource_exhausted

Conversation

@sakthivelmanii
Copy link
Copy Markdown
Contributor

@sakthivelmanii sakthivelmanii commented Jul 7, 2025

Description:

Currently, we are doing blind retry for ResourceExhausted which is not expected as per go/cloud-spanner-flow-control-propagation. Expectation is that if there is a retry info, and if it has server delay then we should retry it.

Java implementation: https://github.com/googleapis/java-spanner/blob/f4efd7afe6b86adbd6a920f4791093efcd39ce67/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java#L327

Fixes #11134

@sakthivelmanii sakthivelmanii requested review from a team July 7, 2025 17:16
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Jul 7, 2025
olavloite
olavloite previously approved these changes Jul 7, 2025
@sakthivelmanii sakthivelmanii force-pushed the fix_blind_retry_for_resource_exhausted branch from b824b5c to 7fc236f Compare July 8, 2025 05:18
@sakthivelmanii sakthivelmanii merged commit f9b6e88 into main Jul 8, 2025
10 checks passed
@sakthivelmanii sakthivelmanii deleted the fix_blind_retry_for_resource_exhausted branch July 8, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spanner: Blind retry of RESOURCE_EXHAUSTED status on Read can hang indefinitely

3 participants