lujiefsi commented on a change in pull request #3101:
URL: https://github.com/apache/hbase/pull/3101#discussion_r603781566



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
##########
@@ -963,6 +963,12 @@ public SplitTableRegionResponse splitRegion(final 
RpcController controller,
       if (execController.getFailedOn() != null) {
         throw execController.getFailedOn();
       }
+
+      String remoteAddress = 
RpcServer.getRemoteAddress().map(InetAddress::toString).orElse("");
+      User caller = RpcServer.getRequestUser().orElse(null);
+      AUDITLOG.info("User {} (remote address: {}) master service request for 
{}.{}", caller,
+        remoteAddress, serviceName, methodName);

Review comment:
       I have checked the related code, there is no easy way to obtain 
infomration like region name or table name




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


Reply via email to