diff --git a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java index e6530ad4335..e4f6dd1bf18 100644 --- a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java +++ b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java @@ -407,7 +407,7 @@ public MultiDeleteResponse multiDelete(@PathParam("bucket") String bucketName, MultiDeleteResponse result = new MultiDeleteResponse(); // Check if the S3Gateway status is readonly - Optional checkResult = checkIfReadonly(false); + Optional checkResult = checkIfReadonly(true); if (checkResult.isPresent()) { Response res = checkResult.get(); result.addError(new Error("", res.getStatusInfo().getReasonPhrase(),