Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors #3708

Merged

Conversation

harshachinta
Copy link
Contributor

@harshachinta harshachinta commented Mar 24, 2025

Before this change, when a transaction using a multiplexed session encountered an UNIMPLEMENTED error with the message Transaction type read_write not supported with multiplexed sessions from the backend, the transaction would fail abruptly without any special handling.

This PR introduces handling for this scenario in the TransactionRunner, where transactions encountering the UNIMPLEMENTED error with the message Transaction type read_write not supported with multiplexed sessions are automatically retried using a regular session.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Mar 24, 2025
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Mar 26, 2025
@harshachinta harshachinta changed the title chore(spanner): fallback for TransactionRunner chore(spanner): retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors Mar 26, 2025
@harshachinta harshachinta marked this pull request as ready for review March 26, 2025 10:01
@harshachinta harshachinta requested review from a team as code owners March 26, 2025 10:01
@harshachinta harshachinta requested a review from olavloite March 26, 2025 10:01
@harshachinta harshachinta changed the title chore(spanner): retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors fix(spanner): retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors Mar 26, 2025
@olavloite olavloite changed the title fix(spanner): retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors chore: retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors Mar 26, 2025
@harshachinta harshachinta requested a review from olavloite March 26, 2025 15:21
@harshachinta harshachinta merged commit efb1680 into googleapis:main Mar 27, 2025
30 of 32 checks passed
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: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants