Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner: retry SessionNotFound on BeginTransaction for read-only tx
'Session not found' errors on BeginTransaction calls for a read-only transaction should be retried on a new session, and the invalid session should be removed from the session pool. Updates #1527. Change-Id: I49a6cb5e096c8b93c7aec76cdbd1c3d640f50c0d Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/50510 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Hengfeng Li <hengfeng@google.com>
- Loading branch information
Showing
3 changed files
with
90 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters