chihsuan commented on code in PR #11458:
URL: https://github.com/apache/ozone/pull/11458#discussion_r4301056726


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -4380,6 +4381,16 @@ public TenantUserList listUsersInTenant(String tenantId, 
String prefix)
     }
   }
 
+  @Override
+  public BucketInfoWithS3Context getS3BucketInfo(String bucketName) throws 
IOException {
+    S3VolumeContext context = getS3VolumeContext();

Review Comment:
   Should this use `getS3VolumeContext(true)` like `getKeyInfo` does? 
Currently, a missing bucket can return `AccessDenied` here, but `NoSuchBucket` 
in #11479 and in GetObject. Keeping the current order also makes sense to me, 
but I think we should return a consistent error status.



-- 
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]

Reply via email to