errose28 commented on a change in pull request #2857:
URL: https://github.com/apache/ozone/pull/2857#discussion_r766071456



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/tenant/OMTenantRequestHelper.java
##########
@@ -99,26 +100,29 @@ static void checkTenantExistence(OMMetadataManager 
omMetadataManager,
    * Retrieve volume name of the tenant.
    */
   static String getTenantVolumeName(OMMetadataManager omMetadataManager,
-      String tenantId) {
+      String tenantId) throws OMException {
 
     final OmDBTenantInfo tenantInfo;
     try {
       tenantInfo = omMetadataManager.getTenantStateTable().get(tenantId);

Review comment:
       We don't want this one in a try/catch. An exception here does not mean 
the tenant was not found, it means there was an error accessing RocksDB. This 
should terminate the OM. OzoneManagerRatisUtils#exceptionToResponseState will 
read the IOException to determine whether it warrants an error response to the 
user or OM termination. This means this method should throw IOException. Error 
handling in the two cases below looks good though.




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