-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Azure: Check if container is empty before issuing DeleteContainer #9733
Conversation
363cf23
to
e7a5cde
Compare
By the way, I guess it is okay to ignore incomplete multipart uploads ? I don't see why we need to consider it but just wanted to share with you. |
No we don't care about them @vadmeste S3 delete's bucket with incomplete uploads |
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 & tested
Mint Automation
9733-af95ae8/mint-xl.sh.log:
9733-af95ae8/mint-gateway-azure.sh.log:
Deleting image on docker hub |
Description
Containers in Azure can be deleted even if there are objects within them. Azure gateway should behave like S3 wherever possible. So, it should not delete a bucket which is not empty.
Motivation and Context
Motivation is to make Azure Gateway behave like S3
How to test this PR?
Create a bucket using Azure Gatewat and upload an object and issue Delete Bucket S3 API and see the bucket getting deleted.
With this PR, that will not hapen.
Types of changes
Checklist:
commit-id
orPR #
here)