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: change customer StorageException from RuntimeException to StatusRuntimeException #1559

Merged
merged 9 commits into from Mar 3, 2022

Conversation

stephaniewang526
Copy link
Contributor

So that Beam connector can consume it.
(related to: apache/beam@85268dd)

@stephaniewang526 stephaniewang526 requested review from a team and shollyman March 2, 2022 20:02
@product-auto-label product-auto-label bot added the api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. label Mar 2, 2022
@stephaniewang526 stephaniewang526 requested a review from a team as a code owner March 2, 2022 20:12
…RuntimeException so that Beam connector can consume it.
fix clirr

fix clirr

nit
Copy link
Contributor

@yirutang yirutang left a comment

Choose a reason for hiding this comment

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

One Line 133. How about rpcStatus is null?
I think we should add a unit case trying the toStorageEexception with a random Exception.

@stephaniewang526
Copy link
Contributor Author

One Line 133. How about rpcStatus is null? I think we should add a unit case trying the toStorageEexception with a random Exception.

Added a negative test to verify behavior when we get a non-StatusRuntimeException.

@stephaniewang526 stephaniewang526 added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
@stephaniewang526 stephaniewang526 added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
Copy link

@tswast tswast left a comment

Choose a reason for hiding this comment

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

LGTM since StatusRuntimeException extends RuntimeException and only private/protected constructors are breaking.

@stephaniewang526 stephaniewang526 added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 3, 2022
@stephaniewang526 stephaniewang526 added the automerge Merge the pull request once unit tests and other checks pass. label Mar 3, 2022
@stephaniewang526 stephaniewang526 merged commit 523377e into googleapis:main Mar 3, 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 Mar 3, 2022
gcf-merge-on-green bot pushed a commit that referenced this pull request Mar 4, 2022
🤖 I have created a release *beep* *boop*
---


### [2.10.1](v2.10.0...v2.10.1) (2022-03-03)


### Bug Fixes

* change customer StorageException from RuntimeException to StatusRuntimeException ([#1559](#1559)) ([523377e](523377e))


### Dependencies

* update actions/checkout action to v3 ([#1554](#1554)) ([1371ac9](1371ac9))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#1555](#1555)) ([cc25162](cc25162))


### Documentation

* improve documentation for write client ([#1560](#1560)) ([fbb5321](fbb5321))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants