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 up ResumableUploadProgressTracker by whowes · Pull Request #14427 · googleapis/google-cloud-java

Conversation

@whowes

@whowes whowes commented Sep 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Connects ResumableUploadProgressTracker to ResumableUploadChunkCoordinator and ResumableUploadFutureImpl, enabling user code to register a ResumableUploadProgressListener via ResumableUploadOptions.

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 force-pushed the whowes/resumable-upload-progress branch from 83b4b65 to 9ff252b Compare September 17, 2026 22:08
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 added this pull request to stack #14429 September 17, 2026 22:16
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 9ff252b to ca9311c Compare September 17, 2026 22:22
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from ca9311c to f4f204e Compare September 18, 2026 02:23
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from f4f204e to e88cc0e Compare September 18, 2026 03:01
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from e88cc0e to 295cebb Compare September 18, 2026 03:21
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 295cebb to 3689a54 Compare September 18, 2026 15:05
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 3689a54 to ff83e05 Compare September 19, 2026 01:37
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from ff83e05 to f8af452 Compare September 19, 2026 21:25
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from f8af452 to 8310b51 Compare September 19, 2026 22:58
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 8310b51 to 1078304 Compare September 19, 2026 23:17
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 1078304 to 49e3dcf Compare September 20, 2026 00:20
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 49e3dcf to 950274a Compare September 20, 2026 05:24
@whowes
whowes removed this pull request from stack #14429 September 20, 2026 07:20
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 950274a to ee73e46 Compare September 20, 2026 07:46
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 2aeb2f1 to c4e12c5 Compare September 22, 2026 19:39
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from c4e12c5 to 282993f Compare September 22, 2026 19:57
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 282993f to 9a55379 Compare September 22, 2026 20:20
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 9a55379 to 04213cd Compare September 22, 2026 21:36
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 04213cd to 2635b58 Compare September 22, 2026 22:07
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 2635b58 to afc3739 Compare September 22, 2026 23:12
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from afc3739 to 9d6f045 Compare September 22, 2026 23:29
@whowes
whowes force-pushed the whowes/resumable-upload-progress branch from 9d6f045 to 469ce0d Compare September 22, 2026 23:34
@whowes whowes mentioned this pull request Sep 22, 2026
feat(gax): add ResumableUploadProgressListener and related infrastructure #14426
Merged
@whowes

whowes commented Sep 24, 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]

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 commented Sep 26, 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 Sep 26, 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 introduces progress tracking capabilities for resumable uploads by adding a progress tracker to the upload coordinator and exposing listener registration and progress retrieval methods on the resumable upload future interface. Eager validation of the listener and executor arguments in the registration method is recommended to prevent potential null pointer exceptions.

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
Comment on lines +264 to +266
public void addProgressListener(ResumableUploadProgressListener listener, Executor executor) {
progressTracker.addListener(listener, executor);
}

@gemini-code-assist gemini-code-assist Bot Sep 26, 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.

medium

To prevent potential NullPointerExceptions or unexpected behavior when registering listeners, we should eagerly validate that both the listener and executor arguments are non-null using checkNotNull.

  @Override
  public void addProgressListener(ResumableUploadProgressListener listener, Executor executor) {
    checkNotNull(listener, "listener must not be null");
    checkNotNull(executor, "executor must not be null");
    progressTracker.addListener(listener, executor);
  }

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Sep 26, 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
blakeli0
blakeli0 reviewed Sep 28, 2026
View reviewed changes
Comment thread sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadFuture.java Resolved

Uh oh!

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

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

Uh oh!

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

blakeli0
blakeli0 reviewed Sep 28, 2026
View reviewed changes
Comment thread sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadOptions.java Outdated

public abstract @Nullable Duration getGlobalTimeout();

public abstract Builder setProgressListener(ResumableUploadProgressListener progressListener);

@blakeli0 blakeli0 Sep 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.

Can we mark the setter with @Nullable as well?

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Sep 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 sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadOptions.java Outdated

public abstract @Nullable Duration getGlobalTimeout();

public abstract Builder setProgressListener(ResumableUploadProgressListener progressListener);

@blakeli0 blakeli0 Sep 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: This is probably a miss from previous PRs that we don't have javadocs on other setters. But usually we have Javadocs on both getters and setters. For example, ClientSettings

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Sep 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.

Added Javadoc to the setters

Sorry, something went wrong.

Uh oh!

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

All reactions
blakeli0
blakeli0 reviewed Sep 29, 2026
View reviewed changes
Comment thread sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ResumableUploadOptions.java Outdated
public abstract @Nullable Duration getGlobalTimeout();

/**
* Sets the listener notified of upload progress and state transitions. The listener first

@blakeli0 blakeli0 Sep 29, 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 listener first receives a snapshot of the current upload state

I think it would always be starting from Starting state now?

Sorry, something went wrong.

Uh oh!

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

All reactions

@whowes whowes Sep 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.

True, adjusted javadoc to reflect this.

Sorry, something went wrong.

Uh oh!

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

All reactions
blakeli0
blakeli0 approved these changes Sep 29, 2026
View reviewed changes
@whowes
feat(gax): wire progress listener into coordinator and attempt lifecycle
96b37da
@sonarqubecloud

sonarqubecloud Bot commented Sep 29, 2026

Copy link
Copy Markdown

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

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.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 Sep 29, 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.

@release-please release-please Bot mentioned this pull request Sep 30, 2026
chore(main): release 1.93.0 #14552
Merged
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.