Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gensupport): allow initial request for resumable uploads to retry w/ non-nil getBody #1690

Merged
merged 7 commits into from Sep 21, 2022

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Sep 12, 2022

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Fixes googleapis/google-cloud-go#6652

Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor docs nits, otherwise LGTM

internal/gensupport/media.go Outdated Show resolved Hide resolved
internal/gensupport/media_test.go Outdated Show resolved Hide resolved
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tritone tritone merged commit 2c3e863 into googleapis:main Sep 21, 2022
rhu713 pushed a commit to rhu713/google-api-go-client that referenced this pull request Nov 4, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to rhu713/google-api-go-client that referenced this pull request Nov 4, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to rhu713/google-api-go-client that referenced this pull request Nov 4, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to cockroachdb/google-api-go-client that referenced this pull request Nov 4, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to cockroachdb/google-api-go-client that referenced this pull request Nov 7, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to cockroachdb/google-api-go-client that referenced this pull request Nov 7, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to cockroachdb/google-api-go-client that referenced this pull request Nov 17, 2022
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
rhu713 pushed a commit to cockroachdb/google-api-go-client that referenced this pull request Jan 18, 2023
… w/ non-nil getBody (googleapis#1690)

This allows retries when initiating a resumable upload session.

Add support in media.go to return a getBody function so the request body can be recreated during retry attempts.

Tests pass locally in google-cloud-go/storage

Updates googleapis/google-cloud-go#6652

Co-authored-by: Chris Cotter <cjcotter@google.com>
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.

storage: Initial request for resumable uploads larger than ChunkSize not retried
3 participants