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

feat(storage): add Writer.ChunkRetryDeadline #5482

Merged
merged 3 commits into from Feb 10, 2022

Conversation

tritone
Copy link
Contributor

@tritone tritone commented Feb 9, 2022

Expose the ChunkRetryDeadline MediaOption through the manual
client layer. This allows users to set a longer deadline for
chunk retries in resumable uploads if desired.

I also considered this as a RetryOption, but 1. it's only
relevant for uploads and 2. it should be configured in
conjunction with ChunkSize which is a field on Writer.

Updates googleapis/google-api-go-client#685

Expose the ChunkRetryDeadline MediaOption through the manual
client layer. This allows users to set a longer deadline for
chunk retries in resumable uploads if desired.

I also considered this as a RetryOption, but 1. it's only
relevant for uploads and 2. it should be configured in
conjunction with ChunkSize which is a field on Writer.

Updates googleapis/google-api-go-client#685
@tritone tritone requested review from a team as code owners February 9, 2022 04:01
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: storage Issues related to the Cloud Storage API. labels Feb 9, 2022
@tritone
Copy link
Contributor Author

tritone commented Feb 9, 2022

Presubmits seem to be failing for everything due to issues with the new Go 1.15 kokoro build; @codyoss PTAL

@codyoss codyoss added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 9, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 9, 2022
Copy link
Contributor

@BrennaEpp BrennaEpp left a comment

Choose a reason for hiding this comment

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

Awesome!

storage/writer.go Show resolved Hide resolved
@tritone tritone merged commit 498a746 into googleapis:main Feb 10, 2022
@tritone tritone deleted the chunk-deadline branch February 10, 2022 23:09
adityamaru added a commit to adityamaru/cockroach that referenced this pull request Apr 22, 2022
This change was motivated by the need to pickup
googleapis/google-cloud-go#5482 that
makes the `Writer.ChunkRetryDeadline` configurable.

Some other notable bumps in this upgrade are:

go get: upgraded google.golang.org/api v0.65.0 => v0.75.0
go get: upgraded google.golang.org/grpc v1.43.0 => v1.46.0
go get: upgraded google.golang.org/protobuf v1.27.1 => v1.28.0

Release note: None
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Apr 23, 2022
80412: go.mod: upgrade cloud.google.com/go/storage to v1.21.0 r=knz a=adityamaru

This change was motivated by the need to pickup
googleapis/google-cloud-go#5482 that
makes the `Writer.ChunkRetryDeadline` configurable.

Some other notable bumps in this upgrade are:

go get: upgraded google.golang.org/api v0.65.0 => v0.75.0
go get: upgraded google.golang.org/grpc v1.43.0 => v1.46.0
go get: upgraded google.golang.org/protobuf v1.27.1 => v1.28.0

Release note: None

Co-authored-by: Aditya Maru <adityamaru@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants