Uh oh!
There was an error while loading. Please reload this page.
Retry streaming exceptions (this time for sure, Rocky!) - #4016
Merged
tseaver merged 6 commits intoSep 21, 2017
Conversation
Tracks the 'resume_token', and issues restart after a 503.
Retry handling will be done behind the scenes.
tseaver
commented
Sep 21, 2017
ContributorAuthor
theacodes
approved these changes
Sep 21, 2017
lukesneeringer
commented
Sep 21, 2017
Contributor
After @vkedia says yes, I will start the process for a Spanner release. |
bjwatson
commented
Sep 21, 2017
Thanks @lukesneeringer, @tseaver, and @jonparrott! |
vkedia
reviewed
Sep 21, 2017
| LAST = ( | ||
| self._make_item(3), | ||
| ) | ||
| ITEMS = FIRST + SECOND + LAST |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
vkedia
reviewed
Sep 21, 2017
| self.assertEqual(list(resumable), list(ITEMS)) | ||
| restart.assert_called_once_with() | ||
| def test_iteration_w_raw_raising_unavailable(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Also, remove unused variable. Addresses: #4016 (comment)#4016 (comment)
lukesneeringer
commented
Sep 21, 2017
Contributor
Is this approved, @vkedia? |
vkedia
approved these changes
Sep 21, 2017
tseaver
deleted the
3775-spanner-retry-streaming-exceptions-bullwinkle
branch
September 21, 2017 22:30
parthea pushed a commit
that referenced
this pull request
Mar 9, 2026
* Add '_restart_on_unavailable' iterator wrapper.
Tracks the 'resume_token', and issues restart after a 503.
* Strip knowledge of 'resume_token' from 'StreamedResultSet'.
* Remove 'resume_token' args from 'Snapshot' and 'Session' API surface:
Retry handling will be done behind the scenes.
* Use '_restart_on_unavailable' wrapper in 'SRS.{read,execute_sql}.
Closes#3775.
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #3930.
Closes#3775.
/cc vkedia