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

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

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

 ##########
 File path: 
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHA.java
 ##########
 @@ -759,6 +768,140 @@ public void testReadRequest() throws Exception {
     }
   }
 
+  @Test
+  public void testAddBucketAcl() throws Exception {
+    OzoneBucket ozoneBucket = setupBucket();
+    String remoteUserName = "remoteUser";
+    OzoneAcl defaultUserAcl = new OzoneAcl(USER, remoteUserName,
+        READ, DEFAULT);
+
+    OzoneObj ozoneObj = OzoneObjInfo.Builder.newBuilder()
+        .setResType(OzoneObj.ResourceType.BUCKET)
+        .setStoreType(OzoneObj.StoreType.OZONE)
+        .setVolumeName(ozoneBucket.getVolumeName())
+        .setBucketName(ozoneBucket.getName()).build();
+
+    boolean addAcl = objectStore.addAcl(ozoneObj, defaultUserAcl);
+    Assert.assertTrue(addAcl);
+
+    ozoneBucket.addAcls(Collections.singletonList(defaultUserAcl));
 
 Review comment:
   In this place mistakenly used OzoneBucket#addAcl
   Removed that usage. We can use this jira to implement Bucket ACL 
implementation for HA.
   For other issue, there is already a jira to address this.
   https://issues.apache.org/jira/browse/HDDS-1913
 
----------------------------------------------------------------
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: 290668)
    Time Spent: 5h 10m  (was: 5h)

> 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: 5h 10m
>  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