Skip to content

fix: Prevent sending full table scan when retrying (backport #554)#697

Merged
igorbernstein2 merged 1 commit intogoogleapis:v1from
igorbernstein2:readrows-fts
Nov 18, 2022
Merged

fix: Prevent sending full table scan when retrying (backport #554)#697
igorbernstein2 merged 1 commit intogoogleapis:v1from
igorbernstein2:readrows-fts

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 a review from a team November 18, 2022 04:41
@igorbernstein2 igorbernstein2 requested a review from a team as a code owner 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