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 d3ae623 RANGER-2637:RangerTags loading issue when Ranger admin
service is not available
d3ae623 is described below
commit d3ae6231664ea445192c84036ed77a635496f331
Author: rmani <[email protected]>
AuthorDate: Tue Nov 5 14:06:19 2019 -0800
RANGER-2637:RangerTags loading issue when Ranger admin service is not
available
Signed-off-by: rmani <[email protected]>
---
.../apache/ranger/plugin/contextenricher/RangerAdminTagRetriever.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAdminTagRetriever.java
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAdminTagRetriever.java
index 4caed81..f766e05 100644
---
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAdminTagRetriever.java
+++
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAdminTagRetriever.java
@@ -58,6 +58,9 @@ public class RangerAdminTagRetriever extends
RangerTagRetriever {
} catch (ClosedByInterruptException
closedByInterruptException) {
LOG.error("Tag-retriever thread was interrupted
while blocked on I/O");
throw new InterruptedException();
+ } catch (Exception e) {
+ LOG.error("Tag-retriever encounterd exception,
exception=", e);
+ LOG.error("Returning null service tags");
}
}
return serviceTags;