GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(gax): wire-level changes for resuming uploads by whowes · Pull Request #14870 · googleapis/google-cloud-java

Conversation

@whowes

@whowes whowes commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • parse chunk granularity from query responses so that user-provided chunk size on resume can be aligned to the server's granularity when present
  • consolidate header name constants and parseChunkGranularity (now used in both start and query) into a new ResumableUploadHeaders class

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Oct 30, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Code Review

This pull request refactors HTTP/JSON resumable upload logic by introducing a shared ResumableUploadHeaders utility class to centralize header constants and parsing logic. It also updates ResumableUploadChunkCallable and ResumableUploadQueryStatusCallable to omit credentials and reset the EndpointContext for self-authenticating session URLs. Additionally, chunk granularity parsing has been integrated into the query status flow, and corresponding unit tests have been added. Feedback suggests avoiding the use of HttpJsonStatusCode.of when creating a StatusCode for internal exceptions to prevent incorrect classification of errors as recoverable, recommending an anonymous implementation of StatusCode instead.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .../gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/ResumableUploadHeaders.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@whowes
whowes added this pull request to stack #14871 October 30, 2026 23:27
@whowes
whowes force-pushed the whowes/resumable-upload-resume-wire branch from 1a0efb3 to c158e70 Compare November 2, 2026 17:30
@whowes
whowes marked this pull request as ready for review November 2, 2026 19:40
@whowes
whowes requested a review from a team as a code owner November 2, 2026 19:40
@whowes
whowes requested a review from blakeli0 November 2, 2026 19:41
@whowes whowes mentioned this pull request Nov 2, 2026
feat(gax): implement resumable upload session resumption #14677
Merged
blakeli0
blakeli0 reviewed Nov 3, 2026
View reviewed changes
Comment thread .../gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/ResumableUploadHeaders.java Outdated
try {
int parsed = Integer.parseInt(granularityStr);
if (parsed <= 0) {
throw ApiExceptionFactory.createException(

@blakeli0 blakeli0 Nov 3, 2026

Copy link
Copy Markdown
Contributor

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.

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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@whowes whowes Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

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.

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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@whowes
feat(gax): wire-level changes for resuming uploads
c9676ea
@whowes
whowes force-pushed the whowes/resumable-upload-resume-wire branch from c158e70 to c9676ea Compare November 4, 2026 04:04
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
97.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

blakeli0
blakeli0 approved these changes Nov 5, 2026
View reviewed changes
@whowes
whowes merged commit 956ac4d into main Nov 5, 2026
320 of 323 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@whowes
whowes deleted the whowes/resumable-upload-resume-wire branch November 5, 2026 16:18
@release-please release-please Bot mentioned this pull request Nov 5, 2026
chore(main): release 1.96.0 #14934
Merged
jinseopkim0 pushed a commit that referenced this pull request Nov 5, 2026
@release-please
chore(main): release 1.96.0 (#14934)
524d6c9
🤖 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@blakeli0 blakeli0 blakeli0 approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@whowes @blakeli0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.