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: Prevent sending full table scan when retrying (backport #554) #697

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

igorbernstein2
Copy link
Contributor

@igorbernstein2 igorbernstein2 commented Nov 18, 2022

Update the retry logic. Don't send empty row_key and empty row_ranges if the original message didn't ask for those.

NOTE: the test structure changed considerably in the main branch, so backporting those will take some time

…is#554)

Update the retry logic. Don't send empty row_key and empty row_ranges
if the original message didn't ask for those.

Closes internal issue 214449800

* Create InvalidRetryRequest exception.
Raise InvalidRetryRequest instead of StopIteration
Catch the InvalidRetryRequest
Handle stop the retry request if row_limit has been reached.
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/python-bigtable API. labels Nov 18, 2022
@igorbernstein2 igorbernstein2 marked this pull request as ready for review November 18, 2022 04:41
@igorbernstein2 igorbernstein2 requested review from a team as code owners November 18, 2022 04:41
Copy link
Contributor

@mutianf mutianf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@igorbernstein2 igorbernstein2 merged commit c4ae6ad into googleapis:v1 Nov 18, 2022
@igorbernstein2 igorbernstein2 deleted the readrows-fts branch November 18, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants