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

can't reliably delete and re-create buckets with same name is a known issue and AWS design decision #4

Open
aculich opened this issue Oct 18, 2014 · 0 comments

Comments

@aculich
Copy link
Contributor

aculich commented Oct 18, 2014

After deleting a bucket and attempting to re-create it with the same name I received the following error code and description:

Error Code Description HTTP Status Code SOAP Fault Code Prefix
OperationAborted A conflicting conditional operation is currently in progress against this resource. Try again. 409 Conflict Client

The delete_bucket behavior is surprising relative to other delete operations and is undocumented in the AWS S3 API.

Creating a bucket with the same name as one that has been deleted may not even be possible in some cases. Typically it takes a few hours for the bucket names to be cleared so in practice it is often possible to create a new bucket with the same name.

Interestingly, create_bucket also does not behave as expected compated to other create/delete operations in the AWS API; if a bucket already exists, the call to create_bucket does not raise an exception about a duplicate already existing, which it does for other resource types other than buckets.

The behavior is not mentioned in any of the official documentation, but it seems that other people learn the hard way just as I did, even though this has been a known issue since at least 2009 with this official reply from Amazon:

I strongly recommend against deleting a bucket that you want to keep. There’s never any guarantee that you will be able to create a <new bucket with the same bucket name.

Read more at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant