Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Retry streaming exceptions (this time for sure, Rocky!)#4016

Merged
tseaver merged 6 commits intomasterfrom
3775-spanner-retry-streaming-exceptions-bullwinkle
Sep 21, 2017
Merged

Retry streaming exceptions (this time for sure, Rocky!)#4016
tseaver merged 6 commits intomasterfrom
3775-spanner-retry-streaming-exceptions-bullwinkle

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Sep 21, 2017

Supersedes #3930.

Closes #3775.

/cc vkedia

@tseaver tseaver added api: spanner Issues related to the Spanner API. release blocking Required feature/issue must be fixed prior to next release. labels Sep 21, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 21, 2017
@tseaver
Copy link
Contributor Author

tseaver commented Sep 21, 2017

@vkedia, @bjwatson PTAL

@lukesneeringer
Copy link
Contributor

After @vkedia says yes, I will start the process for a Spanner release.

@bjwatson
Copy link

Thanks @lukesneeringer, @tseaver, and @jonparrott!

LAST = (
self._make_item(3),
)
ITEMS = FIRST + SECOND + LAST

This comment was marked as spam.

This comment was marked as spam.

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.

@lukesneeringer
Copy link
Contributor

Is this approved, @vkedia?

@tseaver tseaver merged commit 5a0fe35 into master Sep 21, 2017
@tseaver tseaver deleted the 3775-spanner-retry-streaming-exceptions-bullwinkle branch September 21, 2017 22:30
This was referenced Sep 22, 2017
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.
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 Spanner API. cla: yes This human has signed the Contributor License Agreement. release blocking Required feature/issue must be fixed prior to next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants