This is an automated email from the ASF dual-hosted git repository.
ritesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 890aed38d1 HDDS-9108. Improve error message when force deleting FSO
bucket via S3 (#5533)
890aed38d1 is described below
commit 890aed38d1b8ad57e2d1a798712c4a4b710969fa
Author: SaketaChalamchala <[email protected]>
AuthorDate: Mon Nov 6 14:42:17 2023 -0800
HDDS-9108. Improve error message when force deleting FSO bucket via S3
(#5533)
---
.../main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
index a526404ff1..763c2d6be5 100644
---
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
+++
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/S3ErrorTable.java
@@ -64,7 +64,10 @@ public final class S3ErrorTable {
" or might be invalid", HTTP_FORBIDDEN);
public static final OS3Exception BUCKET_NOT_EMPTY = new OS3Exception(
- "BucketNotEmpty", "The bucket you tried to delete is not empty.",
+ "BucketNotEmpty", "The bucket you tried to delete is not empty. " +
+ "If you are using --force option to delete all objects in the bucket, " +
+ "please ensure that the bucket layout is OBJECT_STORE or " +
+ "that the bucket is completely empty before delete.",
HTTP_CONFLICT);
public static final OS3Exception MALFORMED_HEADER = new OS3Exception(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]