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

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

                Author: ASF GitHub Bot
            Created on: 07/Aug/19 06:01
            Start Date: 07/Aug/19 06:01
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #1202: HDDS-1884. 
Support Bucket ACL operations for OM HA.
URL: https://github.com/apache/hadoop/pull/1202#discussion_r311373795
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketInfo.java
 ##########
 @@ -124,6 +128,95 @@ public String getBucketName() {
     return acls;
   }
 
+  /**
+   * Add an ozoneAcl to list of existing Acl set.
+   * @param ozoneAcl
+   * @return true - if successfully added, false if not added or acl is
+   * already existing in the acl list.
+   */
+  public boolean addAcl(OzoneAcl ozoneAcl) {
 
 Review comment:
   Can we abstract these add/remove logic into common AclUtil class as we can 
see similar logic in both bucket manager and key manager? For example, 
   
   public static boolean addAcl(List<OzoneAcls> existingAcls, OzoneAcl newAcl) 
   public static boolean removeAcl(List<OzoneAcls> existingAcls, OzoneAcl 
newAcl) 
   
    
 
----------------------------------------------------------------
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: 290256)
    Time Spent: 4h 20m  (was: 4h 10m)

> Support Bucket ACL operations for OM HA.
> ----------------------------------------
>
>                 Key: HDDS-1884
>                 URL: https://issues.apache.org/jira/browse/HDDS-1884
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h 20m
>  Remaining Estimate: 0h
>
> -HDDS-15+40+- adds 4 new api for Ozone rpc client. OM HA implementation needs 
> to handle them.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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