[ 
https://issues.apache.org/jira/browse/HDDS-1539?focusedWorklogId=249072&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-249072
 ]

ASF GitHub Bot logged work on HDDS-1539:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/May/19 01:18
            Start Date: 28/May/19 01:18
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #847: HDDS-1539. 
Implement addAcl,removeAcl,setAcl,getAcl for Volume. Contributed Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/847#discussion_r287902348
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/protocolPB/OMPBHelper.java
 ##########
 @@ -122,10 +121,9 @@ public static OzoneAcl convertOzoneAcl(OzoneAclInfo 
aclInfo) {
       throw new IllegalArgumentException("ACL type is not recognized");
     }
 
-    List<IAccessAuthorizer.ACLType> aclRights = new ArrayList<>();
-    for (OzoneAclRights acl : aclInfo.getRightsList()) {
-      aclRights.add(ACLType.valueOf(acl.name()));
-    }
+    BitSet aclRights = new BitSet(aclInfo.getRightsList().size());
 
 Review comment:
   We should not use this to set the BitSet size 
*aclInfo.getRightsList().size()*
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 249072)
    Time Spent: 1h 10m  (was: 1h)

> Implement addAcl,removeAcl,setAcl,getAcl for Volume
> ---------------------------------------------------
>
>                 Key: HDDS-1539
>                 URL: https://issues.apache.org/jira/browse/HDDS-1539
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Implement addAcl,removeAcl,setAcl,getAcl for Volume



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to