Skip to content

fix(Bigtable): ensure RowRanges are set on retry#8224

Merged
bshaffer merged 7 commits intomainfrom
bigtable-set-startkey-on-retry
May 21, 2025
Merged

fix(Bigtable): ensure RowRanges are set on retry#8224
bshaffer merged 7 commits intomainfrom
bigtable-set-startkey-on-retry

Conversation

@bshaffer
Copy link
Copy Markdown
Contributor

@bshaffer bshaffer commented Apr 11, 2025

b/391904535

This PR ensures the conformance tests pass for

  • TestReadRows_Retry_PausedScan
  • TestReadRows_Retry_LastScannedRow

It fixes this by using ReadRowsResponse::getLastScannedRowKey and by using ReadRowsRequest::setEndKeyOpen instead of ReadRowsRequest::setStartKeyOpen when ReadRowsRequest::getReversed() is true.

NOTE: While these changes pass all tests, we should discuss these changes with someone from the Bigtable team to be sure they're being used correctly.

@bshaffer bshaffer requested review from a team April 11, 2025 23:47
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the Bigtable API. label Apr 11, 2025
Comment thread Bigtable/src/ChunkFormatter.php Outdated
Comment thread Bigtable/src/ChunkFormatter.php Outdated
Comment thread Bigtable/src/ChunkFormatter.php Outdated
Comment thread Bigtable/src/ChunkFormatter.php Outdated
mutianf
mutianf previously approved these changes May 19, 2025
@bshaffer bshaffer added the next release PRs to be included in the next release label May 20, 2025
@bshaffer bshaffer merged commit d37a65a into main May 21, 2025
32 of 33 checks passed
@bshaffer bshaffer deleted the bigtable-set-startkey-on-retry branch May 21, 2025 15:56
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 Bigtable API. next release PRs to be included in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants