Skip to content

feat(gax): implement queryStatusCallable for resumable uploads - #14155

Draft
whowes wants to merge 1 commit into
whowes/resumable-upload-chunkfrom
whowes/resumable-upload-query
Draft

feat(gax): implement queryStatusCallable for resumable uploads#14155
whowes wants to merge 1 commit into
whowes/resumable-upload-chunkfrom
whowes/resumable-upload-query

Conversation

@whowes

@whowes whowes commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This provides the ability for callers to query the server for the committed byte offset so far and detect if the upload has already finalized. This is needed for resumable uploads to be able to recover from occasional interruptions.

@whowes whowes changed the title whowes/resumable upload query feat(gax): implement queryStatus in HttpJsonResumableUploadClient Aug 20, 2026

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

Copy link
Copy Markdown
Contributor

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 adds support for querying the status of an active resumable upload session by introducing QueryStatusRequest and QueryStatusResponse and implementing queryStatusCallable() in HttpJsonResumableUploadClient. Feedback on the changes highlights a critical issue where the client only accepts 2xx status codes for status queries, whereas Google's resumable upload protocol returns 308 Resume Incomplete for active uploads. The reviewer suggests updating the status check to accept 308 and adjusting the unit tests to use 308 instead of 200 for mock responses.

@whowes whowes changed the title feat(gax): implement queryStatus in HttpJsonResumableUploadClient feat(gax): implement queryStatusCallable for resumable uploads Aug 21, 2026
@whowes
whowes force-pushed the whowes/resumable-upload-query branch from 44dc342 to 8cfb56d Compare August 21, 2026 00:37
@sonarqubecloud

Copy link
Copy Markdown

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

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

See analysis details on SonarQube Cloud

@sonarqubecloud

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant