From eef8e140c52362196eada8c695cb5bacbcc0f2e7 Mon Sep 17 00:00:00 2001 From: sreenivasulureddy Date: Mon, 5 Aug 2019 14:06:13 +0530 Subject: [PATCH] HBASE-22793 RPC server connection is logging user as NULL principal Signed-off-by: Peter Somogyi Signed-off-by: Pankaj Kumar --- .../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 85f58ba3708b..0ad3613af2f5 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 @@ -110,7 +110,7 @@ public void run() { if (RpcServer.LOG.isTraceEnabled()) { Optional 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;