You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/08/06 12:52:27 UTC

[hbase] branch branch-2.0 updated: HBASE-22793 RPC server connection is logging user as NULL principal

This is an automated email from the ASF dual-hosted git repository.

psomogyi pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new b6a14ec  HBASE-22793 RPC server connection is logging user as NULL principal
b6a14ec is described below

commit b6a14ec38b782b74908779e2e85564a928a5b1e3
Author: sreenivasulureddy <sr...@huawei.com>
AuthorDate: Mon Aug 5 14:06:13 2019 +0530

    HBASE-22793 RPC server connection is logging user as NULL principal
    
    Signed-off-by: Peter Somogyi <ps...@apache.org>
    Signed-off-by: Pankaj Kumar <pa...@huawei.com>
---
 hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java
index e4763a5..ae690f8 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/CallRunner.java
@@ -109,7 +109,7 @@ public class CallRunner {
       if (RpcServer.LOG.isTraceEnabled()) {
         Optional<User> remoteUser = call.getRequestUser();
         RpcServer.LOG.trace(call.toShortString() + " executing as " +
-            (remoteUser.isPresent() ? "NULL principal" : remoteUser.get().getName()));
+            (remoteUser.isPresent() ? remoteUser.get().getName() : "NULL principal"));
       }
       Throwable errorThrowable = null;
       String error = null;