You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ashish Kumar (Jira)" <ji...@apache.org> on 2023/08/02 07:08:00 UTC

[jira] [Created] (HDDS-9108) Delete bucket with force fails while using S3 API for FSO bucket in s3v volume

Ashish Kumar created HDDS-9108:
----------------------------------

             Summary: Delete bucket with force fails while using S3 API for FSO bucket in s3v volume
                 Key: HDDS-9108
                 URL: https://issues.apache.org/jira/browse/HDDS-9108
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Ashish Kumar


When we are operating on FSO bucket using S3 API it fails while using “rb --force” command.
This command keeps sending delete request for each key from S3 and finally deletes the bucket.
But since FSO bucket can have directory which might be non-empty so it fails to delete, as the order on which request comes from S3 may not be first key and then directory.

 
{code:java}
ozone sh bucket create o3://localhost:9862/s3v/bucket1                                    
ashishk@ashishk-MBP16 bin % ozone sh key put o3://localhost:9862/s3v/bucket1/dir1/dir2/dir3/key1 a.txt
ashishk@ashishk-MBP16 bin %
ashishk@ashishk-MBP16 bin % aws s3 --endpoint http://0.0.0.0:9878  rb --force s3://bucket1
delete: s3://bucket1/dir1/dir2/dir3/
delete: s3://bucket1/dir1/
delete: s3://bucket1/dir1/dir2/dir3/key1
delete: s3://bucket1/dir1/dir2/
remove_bucket failed: s3://bucket1 An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty. {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org