[ https://issues.apache.org/jira/browse/HDDS-9108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang updated HDDS-9108: ---------------------------------- Fix Version/s: 2.0.0 1.4.1 > 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 > Assignee: Saketa Chalamchala > Priority: Major > Labels: pull-request-available > Fix For: 2.0.0, 1.4.1 > > > 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 > > $ ozone sh key put o3://localhost:9862/s3v/bucket1/dir1/dir2/dir3/key1 a.txt > $ > $ 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-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org