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: Retry by default for uploads, blob deletes, metadata updates by andrewsg · Pull Request #1400 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Conversation

@andrewsg

@andrewsg andrewsg commented Dec 21, 2024

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@andrewsg
andrewsg requested review from a team December 21, 2024 02:02
@product-auto-label product-auto-label Bot added the size: l Pull request size is large. label Dec 21, 2024
@blunderbuss-gcf blunderbuss-gcf Bot assigned cojenco Dec 21, 2024
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Dec 21, 2024
cojenco
cojenco reviewed Dec 27, 2024
View reviewed changes

@cojenco cojenco 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.

LGTM thanks for enabling retry by default woohoo

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/conformance/retry_strategy_test_data.json Resolved

Uh oh!

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

Comment thread google/cloud/storage/_helpers.py Resolved

Uh oh!

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

Comment thread google/cloud/storage/blob.py Resolved

Uh oh!

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

Comment thread google/cloud/storage/blob.py Resolved

Uh oh!

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

@cojenco cojenco mentioned this pull request Jan 8, 2025
chore(main): release 3.0.0 #1393
Merged
andrewsg added 5 commits January 23, 2025 17:18
@andrewsg
intermediate commit
542695b
@andrewsg
lint, tests
7f694c9
@andrewsg
tests pass
faf3db2
@andrewsg
add insert and update to conf test 1
02d720a
@andrewsg
update conformance tests and split default behavior of ACL
1a5f382
@andrewsg
andrewsg force-pushed the retry-by-default branch from 020c0fe to 1a5f382 Compare January 24, 2025 01:18
@andrewsg

andrewsg commented Jan 24, 2025

Copy link
Copy Markdown
Contributor Author

PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

cojenco
cojenco approved these changes Jan 24, 2025
View reviewed changes

@cojenco cojenco 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.

lgtm, thanks!

Sorry, something went wrong.

Uh oh!

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

All reactions
@andrewsg
andrewsg merged commit 0426005 into main Jan 24, 2025
@andrewsg
andrewsg deleted the retry-by-default branch January 24, 2025 18:28
@ishowta

ishowta commented Feb 6, 2025

Copy link
Copy Markdown

@andrewsg I've noticed that other SDKs (at least Node.js and Go) seem to apply retries only to idempotent operations, as was previously the case in Python. If you don't mind, could you share a bit of insight into the rationale behind this change?

https://github.com/googleapis/nodejs-storage/blob/75c309c0761e4029dcd13024e748d8957052f766/src/storage.ts#L293

https://github.com/googleapis/google-cloud-go/blob/b1e3ce67d97275c7883e2b23617d070981d46bf7/storage/storage.go#L2355

All reactions

Sorry, something went wrong.

Uh oh!

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

@andrewsg

andrewsg commented Feb 6, 2025

Copy link
Copy Markdown
Contributor Author

@ishowta The C++ library currently has enabled retries by default on these operations. We are changing our policy around these specific operations to match the C++ library's precedent, starting with Python, but assuming there are no issues, later to include the other languages. We've determined that the potential negative effect of a double request for these listed operations is practically nil and the actual negative effect of having retries off by default is very large, as most people don't use generations or if_generation_match. However, if you do experience an unexpected issue with this change, please do let us know about it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@ishowta

ishowta commented Feb 6, 2025

Copy link
Copy Markdown

Thank you for the explanation! In some of our projects, we've been configuring the Cloud Storage SDK to always retry, so I'll use this as a reference.

All reactions

Sorry, something went wrong.

Uh oh!

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

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

Reviewers

1 more reviewer
@cojenco cojenco cojenco approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@cojenco cojenco

Labels

api: storage Issues related to the googleapis/python-storage API. size: l Pull request size is large.

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.

3 participants

@andrewsg @ishowta @cojenco
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.