Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

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

Merged
harshachinta merged 10 commits intogoogleapis:mainfrom
harshachinta:mux-fallback-regular-inflight-txns-poc
Mar 27, 2025
Merged

chore: retry in-flight transactions on regular sessions when multiplexed sessions encounter UNIMPLEMENTED errors#3708
harshachinta merged 10 commits intogoogleapis:mainfrom
harshachinta:mux-fallback-regular-inflight-txns-poc

Conversation

@harshachinta
Copy link
Copy Markdown
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 and 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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