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

Add retries to S3 delete_bucket #31192

Merged

Conversation

ferruzzi
Copy link
Contributor

Overview
delete_bucket requires that the bucket is empty before it can be deleted but does not provide a convenient empty_bucket method. We have found that on some edge cases, an API call might write logs or artifacts to the S3 bucket with a delay, which causes the delete_bucket task to fail if the object was added while we were iterating the list of objects. This PR attempts to ensure all objects are actually deleted by retrying (up to N times) until no objects remain before trying to delete the bucket.

@o-nikolas , @vincbeck , @vandonr-amz - This is the PR we discussed yesterday.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon-aws AWS/Amazon - related issues labels May 10, 2023
@vandonr-amz
Copy link
Contributor

I wish we didn't have to do this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants