GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: make retry parameter public and added in other methods by HemangChothani · Pull Request #331 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Conversation
Contributor
Fixes #315
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
andrewsg
suggested changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order for users to use this, they'll need an explanation of what kinds of objects to pass in and how to modify them. "See retry.py" might be enough if retry.py's comments and docstrings are comprehensive.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here in the ACL file you're not just exposing retries in the function signature but actually adding a new default, right? @frankyn ACL commands aren't in the consolidated retry strategy doc, do we want retries enabled on them?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ACLs don't have optimistic concurrency control, therefore we would need to update implementation to rely on storage.objects.patch and storage.buckets.patch instead of ACL specific APIs. Let's remove ACL retries from this PR for now and open a tracking issue.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…into storage_issue_315
andrewsg
suggested changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Technically either google.api_core.retry.Retry or google.cloud.storage.retry.ConditionalRetryPolicy are supported here, and in some cases ConditionalRetryPolicy is the default so despite the complexity we should document it here.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| self.add_entity(self.entity_from_dict(entry)) | ||
|
|
||
| def _save(self, acl, predefined, client, timeout=_DEFAULT_TIMEOUT): | ||
| def _save( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We've investigated and found that ACL save retries don't support the concurrency control we'd need to have full faith in retries here. Please go ahead and remove them. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your efforts here!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@HemangChothani are we clear to merge? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@andrewsg Yes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…pis#331) * feat: make retry parameter public and added in other methods * feat: change in doc string * feat: changes in docstring * feat: remove retry for acl
…pis#331) * feat: make retry parameter public and added in other methods * feat: change in doc string * feat: changes in docstring * feat: remove retry for acl
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add a default retry parameter to all public methods
There was an error while loading. Please reload this page.