Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

fix: make sure that the proper exception type is bubbled up for ReadRows#696

Merged
gcf-merge-on-green[bot] merged 3 commits intogoogleapis:v1from
igorbernstein2:readrows-api-errors
Nov 18, 2022
Merged

fix: make sure that the proper exception type is bubbled up for ReadRows#696
gcf-merge-on-green[bot] merged 3 commits intogoogleapis:v1from
igorbernstein2:readrows-api-errors

Conversation

@igorbernstein2
Copy link
Copy Markdown
Contributor

ReadRows (in client 1.x) bypasses gapic layer and use the raw grpc stubs. Which means that the errors are not being wrapped. Previously the this conversion would be handled in the Retry predicate, however this creates usability issues for end users that are trying to change the exceptions they want to retry on. This PR moves the wrapping a bit lower

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

ReadRows (in client 1.x) bypasses gapic layer and use the raw grpc stubs. Which means that the errors are not being wrapped. Previously the this conversion would be handled in the Retry predicate, however this creates usability issues for end users that are trying to change the exceptions they want to retry on. This PR moves the wrapping a bit lower
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: bigtable Issues related to the googleapis/python-bigtable API. labels Nov 17, 2022
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Nov 18, 2022
@igorbernstein2 igorbernstein2 marked this pull request as ready for review November 18, 2022 04:05
@igorbernstein2 igorbernstein2 requested review from a team November 18, 2022 04:05
Copy link
Copy Markdown
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.

Is it possible to add a test on override the exception? Can we document how a customer can override the retry predicate?

@igorbernstein2 igorbernstein2 added the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2022
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 5c72780 into googleapis:v1 Nov 18, 2022
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2022
@igorbernstein2 igorbernstein2 deleted the readrows-api-errors branch November 18, 2022 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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