[
https://issues.apache.org/jira/browse/RANGER-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961483#comment-15961483
]
Yan commented on RANGER-1502:
-----------------------------
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.
> Solr shutdown does not cause the audit log file to be flushed and closed.
> -------------------------------------------------------------------------
>
> Key: RANGER-1502
> URL: https://issues.apache.org/jira/browse/RANGER-1502
> Project: Ranger
> Issue Type: Bug
> Components: audit, plugins
> Affects Versions: 0.7.0
> Reporter: Yan
> Assignee: Yan
> Fix For: master
>
> Attachments:
> 0001-RANGER-1502-Solr-shutdown-does-not-cause-the-audit-l.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)