GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — feat(gax): wire-level changes for resuming uploads by whowes · Pull Request #14870 · googleapis/google-cloud-java Conversation
|
| try { | ||
| int parsed = Integer.parseInt(granularityStr); | ||
| if (parsed <= 0) { | ||
| throw ApiExceptionFactory.createException( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think moving this error handling logic may cause unexpected retries for queryStatus. startCallable is wrapped by Callable.retrying which should stop retrying if retryable = false. But queryStatusCallable is wrapped by ResumableUploadCallableImpl.createRetryingCallable which ignored retryable and it will be retried per status StatusCode.Code.INTERNAL.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this! I switched to throw an IllegalStateException instead (both this instance and occurrences in the query callable that previously threw ApiExceptions directly). This way the HttpJsonExceptionCallable that wraps the wire callable will map it to an ApiException with UNKNOWN status code, which gets treated as FATAL by the ResumableUploadErrorClassifier and won't be retried.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c158e70 to
c9676ea
Compare
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- <details><summary>1.96.0</summary> ## [1.96.0](v1.95.0...v1.96.0) (2026-11-05) ### Features * **gax:** wire-level changes for resuming uploads ([#14870](#14870)) ([956ac4d](956ac4d)) ### Bug Fixes * **bigquery-jdbc:** preserve civil digits for DATETIME/DATE ([#14910](#14910)) ([53bbde0](53bbde0)) * **bigquery:** handle empty queryParameters list in ConnectionImpl ([#14917](#14917)) ([cfea223](cfea223)) * **bigtable:** allow non-default service accounts for session DirectAccess ([#14926](#14926)) ([9f4a76a](9f4a76a)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.