You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2022/05/14 01:30:42 UTC
[ranger] branch master updated: RANGER-3758: Demote the log level to trace about not having an HBase remote client address
This is an automated email from the ASF dual-hosted git repository.
rmani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new e309667d1 RANGER-3758: Demote the log level to trace about not having an HBase remote client address
e309667d1 is described below
commit e309667d12d9bf6020712a9fadce8912bf671bd7
Author: Josh Elser <el...@apache.org>
AuthorDate: Thu May 12 19:33:42 2022 -0400
RANGER-3758: Demote the log level to trace about not having an HBase remote client address
This is an expected case where there is no client address and there is
zero value derived from knowing that one is not present.
Signed-off-by: Ramesh Mani <rm...@cloudera.com>
---
.../ranger/authorization/hbase/RangerAuthorizationCoprocessor.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
index fbb1bb4f7..417c9c892 100644
--- a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
+++ b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
@@ -211,7 +211,10 @@ public class RangerAuthorizationCoprocessor implements AccessControlService.Inte
try {
remoteAddr = RpcServer.getRemoteAddress().get();
} catch (NoSuchElementException e) {
- LOG.info("Unable to get remote Address");
+ // HBase services will sometimes make calls as a part of
+ // internal operations. It is not worth logging when we do
+ // not have a remote address (a client's remote address).
+ LOG.trace("Unable to get remote Address");
}
if(remoteAddr == null) {