ArafatKhan2198 commented on code in PR #3263:
URL: https://github.com/apache/ozone/pull/3263#discussion_r847275603
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java:
##########
@@ -407,6 +411,10 @@ public S3BucketAcl getAcl(String bucketName)
LOG.error("Failed to get acl of Bucket " + bucketName, ex);
throw newError(S3ErrorTable.INTERNAL_ERROR, bucketName, ex);
}
+ } catch (OS3Exception ex) {
+ getMetrics().incGetAclFailure();
+ LOG.debug("Failed to get acl of Bucket " + bucketName, ex);
+ throw newError(S3ErrorTable.NO_SUCH_BUCKET, bucketName, ex);
Review Comment:
Will make the change, thanks !!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]