GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Retry streaming exceptions (this time for sure, Rocky!) by tseaver · Pull Request #4016 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Sep 21, 2017

Copy link
Copy Markdown
Contributor

Supersedes #3930.

Closes #3775.

/cc vkedia

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tseaver added 4 commits September 21, 2017 10:51
@tseaver
Add '_restart_on_unavailable' iterator wrapper.
a8febac
Tracks the 'resume_token', and issues restart after a 503.
@tseaver
Strip knowledge of 'resume_token' from 'StreamedResultSet'.
1018ea3
@tseaver
Remove 'resume_token' args from 'Snapshot' API surface.
2fe76c8
Retry handling will be done behind the scenes.
@tseaver
Use '_restart_on_unavailable' wrapper in 'SRS.{read,execute_sql}.
056f3c9
Closes #3775.
@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
@tseaver
tseaver requested review from dhermes and lukesneeringer September 21, 2017 15:01
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 21, 2017
@tseaver tseaver mentioned this pull request Sep 21, 2017
Retry streaming exceptions (redux) #3930
Closed
@tseaver
Drop 'resume_token' args from 'Session' API surface, too.
9dcb896
@tseaver

tseaver commented Sep 21, 2017

Copy link
Copy Markdown
Contributor Author

@vkedia, @bjwatson PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

theacodes
theacodes approved these changes Sep 21, 2017
View reviewed changes
@lukesneeringer

lukesneeringer commented Sep 21, 2017

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 21, 2017

Copy link
Copy Markdown

Thanks @lukesneeringer, @tseaver, and @jonparrott!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vkedia
vkedia reviewed Sep 21, 2017
View reviewed changes
Comment thread spanner/tests/unit/test_snapshot.py Outdated
LAST = (
self._make_item(3),
)
ITEMS = FIRST + SECOND + LAST

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vkedia
vkedia reviewed Sep 21, 2017
View reviewed changes
Comment thread spanner/tests/unit/test_snapshot.py
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Add unit test for 503 immediately after token.
fa7bf9e
Also, remove unused variable.

Addresses:
#4016 (comment)
#4016 (comment)
@lukesneeringer

lukesneeringer commented Sep 21, 2017

Copy link
Copy Markdown
Contributor

Is this approved, @vkedia?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vkedia
vkedia approved these changes Sep 21, 2017
View reviewed changes
@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
Bump release to 0.27.1. #4027
Closed
Spanner Beta #4028
Merged
parthea pushed a commit that referenced this pull request Mar 9, 2026
@tseaver
Retry streaming exceptions (this time for sure, Rocky!) (#4016)
23ce4b2
* 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

Reviewers

@lukesneeringer lukesneeringer Awaiting requested review from lukesneeringer
@dhermes dhermes Awaiting requested review from dhermes
2 more reviewers
@theacodes theacodes theacodes approved these changes
@vkedia vkedia vkedia approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@tseaver @lukesneeringer @bjwatson @theacodes @vkedia @googlebot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.