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:26 UTC
[hbase] branch branch-2 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
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new be84e36 HBASE-22793 RPC server connection is logging user as NULL principal
be84e36 is described below
commit be84e36bee789b1c5ce91b686ed2c61f8a1e210d
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 85f58ba..0ad3613 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 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;