anmolnar commented on a change in pull request #428: HBASE-22759 Add user info 
to AUDITLOG events when doing grant/revoke (master)
URL: https://github.com/apache/hbase/pull/428#discussion_r309981304
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
 ##########
 @@ -2584,6 +2586,11 @@ public GrantResponse grant(RpcController controller, 
GrantRequest request)
       if (master.cpHost != null) {
         master.cpHost.postGrant(perm, mergeExistingPermissions);
       }
+      User caller = RpcServer.getRequestUser().orElse(null);
+      if (AUDITLOG.isTraceEnabled()) {
 
 Review comment:
   Thanks, I'll remove it.

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

Reply via email to