-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58272/
-----------------------------------------------------------
(Updated Aug. 4, 2017, 7:54 a.m.)
Review request for ranger.
Bugs: RANGER-1502
https://issues.apache.org/jira/browse/RANGER-1502
Repository: ranger
Description
-------
The current audit stream close mechanism uses a Java shutdown hook registered
with Hadoop's ShutdownHookManager. Solr shutdown, however, somehow does not
cause the shutdown hook to be invoked, potentially resulting lost audit logs.
We are experiencing lost logs toward HDFS audit destination.
The fix is to add invocation of the shutdown hook from the close() call of the
Solr's AuthorizationPlugin interface, in addition to the existing invocation
mechanism from the JVM invocation of shutdown hooks.
Diffs
-----
agents-audit/src/main/java/org/apache/ranger/audit/provider/AuditProviderFactory.java
b37011e6
plugin-solr/src/main/java/org/apache/ranger/authorization/solr/authorizer/RangerSolrAuthorizer.java
bf22b476
Diff: https://reviews.apache.org/r/58272/diff/1/
Testing
-------
automated and manual
Thanks,
Yan Zhou