-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner: retry single use transactions on SessionNotFound
Single use read-only transactions should be retried if the query returns a 'Session not found' error. These queries can safely be retried on a different session as there is no transaction atomicity that can be violated. The retry must be executed by the partial result sets stream, as the query is sent to the server at the first call to RowIterator.Next. Updates #1527. Change-Id: Ia3c77643e42adb2f88dba2cfd5d1bba7f9dbf3be Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/50511 Reviewed-by: Hengfeng Li <[email protected]>
- Loading branch information
Showing
5 changed files
with
144 additions
and
30 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
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