HBASE-22793 RPC server connection is logging user as NULL principal

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Signed-off-by: Pankaj Kumar <pankaj.kr@huawei.com>
This commit is contained in:
sreenivasulureddy 2019-08-05 14:06:13 +05:30 committed by Peter Somogyi
parent 08677143e8
commit eef8e140c5
1 changed files with 1 additions and 1 deletions

View File

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