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): implement resumable upload session resumption by whowes · Pull Request #14677 · googleapis/google-cloud-java

Conversation

@whowes

@whowes whowes commented Oct 16, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Implements ResumableUploadCallable.resumeCall(...) to support resuming interrupted resumable upload sessions from a saved session URL.

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
@whowes
whowes added this pull request to stack #14678 October 16, 2026 23:06
gemini-code-assist[bot]

This comment was marked as outdated.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@whowes
whowes removed this pull request from stack #14678 October 22, 2026 16:36
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch from 386ec37 to c72e920 Compare October 22, 2026 16:37
@whowes
whowes changed the base branch from whowes/align-chunk-size to whowes/resumable-upload-refactor October 22, 2026 16:39
@whowes
whowes added this pull request to stack #14732 October 22, 2026 16:41
@whowes

whowes commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

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

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Oct 22, 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 implements session resumption for resumable uploads in the Java GAX library. It introduces the resumeCall method in ResumableUploadCallableImpl, updates ResumableUploadFutureImpl and ResumableUploadProgressTracker to handle resumption, and enhances RewindableStreamBuffer to skip forward to the server's committed offset. Comprehensive unit and integration tests are also added. Feedback suggests preserving the original EOFException as the cause when catching it from ByteStreams.skipFully in RewindableStreamBuffer to maintain the exception chain and avoid potential null messages.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/RewindableStreamBuffer.java Resolved

Uh oh!

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

@whowes
whowes force-pushed the whowes/resumable-upload-resume branch 2 times, most recently from c72e920 to cf0c9d4 Compare October 22, 2026 17:20
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch 2 times, most recently from c6f9b2b to b02ed8c Compare October 22, 2026 22:31
@whowes
whowes marked this pull request as ready for review October 22, 2026 22:39
@whowes
whowes requested a review from a team as a code owner October 22, 2026 22:39
@whowes
whowes requested a review from blakeli0 October 22, 2026 22:39
blakeli0
blakeli0 reviewed Oct 28, 2026
View reviewed changes
Comment thread ...form-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadCallableImpl.java Resolved

Uh oh!

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

Comment thread ...atform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadFutureImpl.java Outdated
recoveryAlgorithm,
ResumableUploadProgressTracker.createForResume(sessionUrl, options.getChunkSize()));
try {
future.resume(sessionUrl, payloadSupplier);

@blakeli0 blakeli0 Oct 28, 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.

The future should already have access to both sessionUrl and payloadSupplier, I don't think we have to pass them in. In addition, it seems the main responsibility of future.resume is to create a coordinator, which we may want to inline here.

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Oct 29, 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...atform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadFutureImpl.java Outdated
queryStatusCallable,
options,
clientContext,
recoveryAlgorithm,

@blakeli0 blakeli0 Oct 28, 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.

nit: We may want to refactor the constructor since it has 8 arguments now. For example, I see that recoveryAlgorithm is always created and passed to the coordinator, maybe we can create the recoveryAlgorithm in the coordinator directly.

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Oct 29, 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...atform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadFutureImpl.java Outdated
setUpGlobalTimeout();
this.payload = checkNotNull(payloadSupplier.get(), "payload supplier returned null");
ResumableUploadChunkCoordinator<ResponseT> coordinator =
createAndRegisterCoordinator(sessionUrl, options.getChunkSize());

@blakeli0 blakeli0 Oct 28, 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 there might be a security concern if we use the sessionUrl as it is. If a malicious url being passed in, we would still try to attach auth token to that url and make a call regardless. Is there anyway we can validate the url? Maybe it's host needs to match endpoint from client settings? Also this seems a cross-language concern, do we have any guidance?

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Oct 29, 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.

Put out a question to the cross-language working group about the general topic. By my reading of the internal docs I suspect that the host of the upload URL isn't guaranteed to be the same as the endpoint where the start command is sent though so I'm not sure what validation is feasible.

Another thought - IIUC the auth headers are only needed for the start command, so perhaps we could unset those in the wire-level callables we use for upload and query.

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Nov 2, 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.

Circling back to this - sounds like other languages aren't considering the possibility of a malicious upload URL as a concern or doing any validation. For now I'm inclined to leave this as-is but LMK if you have other thoughts.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...atform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadFutureImpl.java Resolved

Uh oh!

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

@whowes
whowes force-pushed the whowes/resumable-upload-resume branch from b02ed8c to 926d744 Compare October 28, 2026 19:32
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch 3 times, most recently from b8d38ad to 5563dbb Compare October 29, 2026 04:56
Base automatically changed from whowes/resumable-upload-refactor to main October 29, 2026 15:36
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch 2 times, most recently from a83bf70 to a8d272c Compare October 30, 2026 23:20
@whowes
whowes removed this pull request from stack #14732 October 30, 2026 23:26
@whowes
whowes changed the base branch from main to whowes/resumable-upload-resume-wire October 30, 2026 23:27
@whowes
whowes added this pull request to stack #14871 October 30, 2026 23:27
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch 2 times, most recently from 48e341e to 75f22a7 Compare November 2, 2026 18:06
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch from 75f22a7 to 341953b Compare November 4, 2026 04:05
Base automatically changed from whowes/resumable-upload-resume-wire to main November 5, 2026 16:18
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch from 341953b to daf2c35 Compare November 5, 2026 16:18
blakeli0
blakeli0 reviewed Nov 9, 2026
View reviewed changes
Comment thread ...-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITResumableUpload.java
CountDownLatch finalizedLatch = new CountDownLatch(1);
ResumableUploadOptions resumeOptions =
DEFAULT_TEST_OPTIONS.toBuilder()
.setProgressListener(

@blakeli0 blakeli0 Nov 9, 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.

Not blocking: I noticed that the javadoc of setProgressListener says beginning with {@link ResumableUploadProgress#STATE_STARTING, but I think resume starts with UPLOADING status? Maybe we have other javadocs that need to be updated now that resume is introduced?

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Nov 9, 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.

Updated javadocs for ResumableUploadOptions, ResumableUploadProgress, and ResumableUploadFuture to reflect the introduction of resume.

Sorry, something went wrong.

Uh oh!

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

All reactions
blakeli0
blakeli0 approved these changes Nov 9, 2026
View reviewed changes
@whowes
feat(gax): implement resumable upload session resumption
51ac3a5
@whowes
whowes force-pushed the whowes/resumable-upload-resume branch from daf2c35 to 51ac3a5 Compare November 9, 2026 23:32
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

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

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
89.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 9, 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.

@whowes
whowes merged commit 24728d6 into main Nov 10, 2026
393 of 396 checks passed

Uh oh!

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

@whowes
whowes deleted the whowes/resumable-upload-resume branch November 10, 2026 00:57
@release-please release-please Bot mentioned this pull request Nov 12, 2026
chore(main): release 1.97.0 #14996
Merged
whowes pushed a commit that referenced this pull request Nov 13, 2026
@release-please
chore(main): release 1.97.0 (#14996)
fd32569
🤖 I have created a release *beep* *boop*
---


<details><summary>1.97.0</summary>

##
[1.97.0](v1.96.0...v1.97.0)
(2026-11-12)


### ⚠ BREAKING CHANGES

* **shopping-merchant:** remove discontinued Merchant API v1beta
([#14942](#14942))

### Features

* **bigquery-jdbc:** adds BigQuery graph integration to DatabaseMetadata
methods
([#14930](#14930))
([950b81b](950b81b))
* **gax:** implement resumable upload session resumption
([#14677](#14677))
([24728d6](24728d6))
* **grpc-gcp:** add built-in channel_count metric for client library
pools
([#14947](#14947))
([712f043](712f043))
* **grpc-gcp:** add built-in channel_load metric for client library
pools
([#14985](#14985))
([9f87888](9f87888))
* **shopping-merchant:** remove discontinued Merchant API v1beta
([#14942](#14942))
([2947dfd](2947dfd))
* **storage:** add StorageErrorTypeMapper for standard metrics
([#14694](#14694))
([a9ac393](a9ac393))
* **storage:** add StorageMetricsContext for operation metrics state
([#14728](#14728))
([edea395](edea395))
* **storage:** wire logical operation metrics in Retrying and
StorageOptions
([#14695](#14695))
([589c66c](589c66c))
* update API sources and regenerate
([#14958](#14958))
([75944f3](75944f3))


### Bug Fixes

* **auth:** verify public/private key match with retries in mTLS
keystore loading
([#14829](#14829))
([096dbd6](096dbd6))
* **bigquery:** set QueryResultsFormat.ARROW in QueryArrow sample
([#14960](#14960))
([c98e7c3](c98e7c3))
* **bigtable:** avoid triggering per-RPC credential session fallback on
default call context
([#14961](#14961))
([eb06d2c](eb06d2c))
* **bigtable:** copy Metadata per GetClientConfiguration call
([#14950](#14950))
([278fe2f](278fe2f))
* **bigtable:** disable SwitchingChannelPool when
ChannelPoolConfiguration is empty
([#14911](#14911))
([fa24702](fa24702))
* **bigtable:** handle empty SessionPoolConfiguration in SessionPoolImpl
and PoolSizer
([#14912](#14912))
([cc7b235](cc7b235))
* **bigtable:** replace SessionPoolImpl Watchdog with per-session
closeTimeout
([#14977](#14977))
([a15acfb](a15acfb))
* **spanner-jdbc:** report database default isolation level
([#14929](#14929))
([7e7595a](7e7595a))
* **spanner:** fix PG SHOW isolation level statements
([#14904](#14904))
([bc917ed](bc917ed))


### Dependencies

* bump grpc to 1.85.1, opentelemetry to 1.67.0, and guava to 33.7.2-jre
([#14957](#14957))
([1a27a00](1a27a00))
* bump guava to 33.7.1-jre and jspecify to 1.0.1
([#14937](#14937))
([1441527](1441527))


### Documentation

* **spanner:** update CHANGELOG.md for java spanner releases
([#14935](#14935))
([956681e](956681e))
* **storage:** add Rapid Cache samples
([#14886](#14886))
([e714f62](e714f62))
</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.