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

Retry whole batch of deletes on 429. #4032

Closed
wants to merge 1 commit into from

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Sep 22, 2017

Because Bucket.delete inside a batch context manager is deferred, we cannot retry it directly. We also need to check for bucket existence, as the bucket may have been deleted successfully in the previous batch before the 429 was raised.

Closes #3761.

@tseaver tseaver added api: storage Issues related to the Cloud Storage API. flaky labels Sep 22, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 22, 2017
@tseaver
Copy link
Contributor Author

tseaver commented Sep 22, 2017

CircleCI failures are unrelated vision flakiness (#4035).

Because 'Bucket.delete' inside a batch context manager is deferred,
we cannot retry it directly.  We also need to check for bucket existence,
as the bucket *may* have been deleted in the previous batch before the
429 was raised.

Closes #3761.
@tseaver tseaver force-pushed the 3761-storage-flaky-systest-cleanup branch from aadbe77 to bccc5bc Compare September 25, 2017 15:28
@tseaver
Copy link
Contributor Author

tseaver commented Sep 25, 2017

Rebased after merge of #4050. Fingers crossed.

@dhermes
Copy link
Contributor

dhermes commented Sep 25, 2017

@tseaver ISTM we should just drop the batch.

@tseaver
Copy link
Contributor Author

tseaver commented Oct 2, 2017

Superseded by #4102.

@tseaver tseaver closed this Oct 2, 2017
@tseaver tseaver deleted the 3761-storage-flaky-systest-cleanup branch October 2, 2017 20:11
tseaver added a commit that referenced this pull request Oct 2, 2017
Allows 429 errors to be handled by retry.

See:
#4032 (comment)
crwilcox pushed a commit to googleapis/python-storage that referenced this pull request Jan 31, 2020
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
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. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants