-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: change customer StorageException from RuntimeException to StatusRuntimeException #1559
Conversation
4180915
to
3030f38
Compare
…RuntimeException so that Beam connector can consume it.
81fcc27
to
8ac46cb
Compare
google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Added a negative test to verify behavior when we get a non-StatusRuntimeException. |
google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java
Outdated
Show resolved
Hide resolved
google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java
Outdated
Show resolved
Hide resolved
...oud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/StreamWriterTest.java
Outdated
Show resolved
Hide resolved
google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java
Outdated
Show resolved
Hide resolved
...e/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java
Show resolved
Hide resolved
There was a problem hiding this 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.
🤖 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).
So that Beam connector can consume it.
(related to: apache/beam@85268dd)