bharatviswa504 commented on a change in pull request #1225: HDDS-1909. Use new 
HA code for Non-HA in OM.
URL: https://github.com/apache/hadoop/pull/1225#discussion_r319614212
 
 

 ##########
 File path: 
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHA.java
 ##########
 @@ -122,6 +124,8 @@ public void init() throws Exception {
     clusterId = UUID.randomUUID().toString();
     scmId = UUID.randomUUID().toString();
     conf.setBoolean(OZONE_ACL_ENABLED, true);
+    conf.set(OzoneConfigKeys.OZONE_ADMINISTRATORS,
 
 Review comment:
   Because Ozone acls are enabled, and for volume creation the acl logic is as 
below. For testing purpose gave "*". 
   ```
         // check Acl
         if (ozoneManager.getAclsEnabled()) {
           if (!ozAdmins.contains(OZONE_ADMINISTRATORS_WILDCARD) &&
               !ozAdmins.contains(getUserInfo().getUserName())) {
             throw new OMException("Only admin users are authorized to create " 
+
                 "Ozone volumes. User: " + getUserInfo().getUserName(),
                 OMException.ResultCodes.PERMISSION_DENIED);
           }
         }
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to