Skip to content

Conversation

olavloite
Copy link
Collaborator

If a connection has a statement timeout and a statement is executed in a read/write transaction, the statement timeout would be reset to the original value during each retry, instead of being reduced after each attempt. This could cause multiple transaction retries to make the execution of a single statement take much longer than the configured timeout value.

@olavloite olavloite requested review from a team as code owners September 22, 2025 13:23
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Sep 22, 2025
@olavloite olavloite force-pushed the recalculate-remaining-timeout-after-retry branch from 2f72a61 to d384ba5 Compare September 22, 2025 14:02
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Sep 22, 2025
@olavloite olavloite force-pushed the recalculate-remaining-timeout-after-retry branch 2 times, most recently from dec4241 to a7b0f87 Compare September 22, 2025 15:44
If a connection has a statement timeout and a statement is executed in a read/write transaction, the statement timeout would be reset to the original value during each retry, instead of being reduced after each attempt. This could cause multiple transaction retries to make the execution of a single statement take much longer than the configured timeout value.
@olavloite olavloite force-pushed the recalculate-remaining-timeout-after-retry branch from bd0afb8 to 7ae9eed Compare September 22, 2025 16:24
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Sep 22, 2025
@olavloite olavloite merged commit 5e26596 into main Sep 23, 2025
42 checks passed
@olavloite olavloite deleted the recalculate-remaining-timeout-after-retry branch September 23, 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 googleapis/java-spanner API. size: s Pull request size is small.

3 participants