Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: retry Aborted errors when creating PeekIterator #345

Merged
merged 1 commit into from May 18, 2021

Conversation

IlyaFaer
Copy link
Member

@IlyaFaer IlyaFaer commented May 17, 2021

A PeekIterator object (used by Cursor as a wrapper around the results iterator) does a preliminary stream of the first resulting row (to get the metadata of the response itself). In such a case, if an Aborted exception happened, it'll not be retried - fixing this error.

Fixes #342

@product-auto-label product-auto-label bot added the api: spanner label May 17, 2021
@google-cla google-cla bot added the cla: yes label May 17, 2021
@IlyaFaer IlyaFaer marked this pull request as ready for review May 17, 2021
@IlyaFaer IlyaFaer requested a review from as a code owner May 17, 2021
@IlyaFaer IlyaFaer requested a review from larkee May 18, 2021
@larkee larkee changed the title fix: an Aborted exception isn't properly retried fix: try Aborted errors when creating PeekIterator May 18, 2021
larkee
larkee approved these changes May 18, 2021
Copy link
Contributor

@larkee larkee left a comment

LGTM

@larkee larkee changed the title fix: try Aborted errors when creating PeekIterator fix: retry Aborted errors when creating PeekIterator May 18, 2021
@larkee larkee merged commit e69e6ab into googleapis:master May 18, 2021
9 checks passed
@IlyaFaer IlyaFaer deleted the retry_aborted branch May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants