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

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

                Author: ASF GitHub Bot
            Created on: 03/Jun/19 21:54
            Start Date: 03/Jun/19 21:54
    Worklog Time Spent: 10m 
      Work Description: bharatviswa504 commented on pull request #857: 
HDDS-1600. Add userName and IPAddress as part of OMRequest.
URL: https://github.com/apache/hadoop/pull/857#discussion_r290054092
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
 ##########
 @@ -2406,8 +2432,10 @@ public void setBucketProperty(OmBucketArgs args)
    */
   @Override
   public void deleteBucket(String volume, String bucket) throws IOException {
-    checkAcls(ResourceType.BUCKET, StoreType.OZONE, ACLType.WRITE, volume,
-        bucket, null);
+    if (isAclEnabled) {
 
 Review comment:
   This is done to avoid object creation of UGI and InetAddress.
   Talked offline, and we agreed on this.
 
----------------------------------------------------------------
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: 253410)
    Time Spent: 3h  (was: 2h 50m)

> Add userName and IPAddress as part of OMRequest.
> ------------------------------------------------
>
>                 Key: HDDS-1600
>                 URL: https://issues.apache.org/jira/browse/HDDS-1600
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> In OM HA, the actual execution of request happens under GRPC context, so UGI 
> object which we retrieve from ProtobufRpcEngine.Server.getRemoteUser(); will 
> not be available.
> In similar manner ProtobufRpcEngine.Server.getRemoteIp().
>  
> So, during preExecute(which happens under RPC context) extract userName and 
> IPAddress and add it to the OMRequest, and then send the request to ratis 
> server.



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