You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Madhan Neethiraj <ma...@apache.org> on 2016/01/26 02:06:19 UTC

Re: Review Request 42747: Audit shutdown hook should not only do its processing interruptibly but also have an upper bound on how long it runs

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42747/#review116244
-----------------------------------------------------------




agents-audit/src/main/java/org/apache/ranger/audit/provider/AuditProviderFactory.java (line 495)
<https://reviews.apache.org/r/42747/#comment177246>

    Shouldn't cleanupThread marked as a daemon thread?


- Madhan Neethiraj


On Jan. 25, 2016, 10:27 p.m., Alok Lal wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42747/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2016, 10:27 p.m.)
> 
> 
> Review request for ranger and Madhan Neethiraj.
> 
> 
> Bugs: RANGER-821
>     https://issues.apache.org/jira/browse/RANGER-821
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Will port this to tip of 0.5, too.  Once approved I would like to treat it as an approval to port it to 0.5.x, too.
> 
> 
> Diffs
> -----
> 
>   agents-audit/src/main/java/org/apache/ranger/audit/provider/AuditProviderFactory.java 723b528 
> 
> Diff: https://reviews.apache.org/r/42747/diff/
> 
> 
> Testing
> -------
> 
> Simulated backlog in HDFS audit provider inside an HDFS plugin.  Issued shutdown of the NN and then observed that:
> - the shutdown hook was fired
> - the async hook did its work
> - Async thread got interrupted and then exited from its while loop
> - Shutdown hook thread exited
> - NN host services shutdown/pocess went away.
> 
> 
> Thanks,
> 
> Alok Lal
> 
>


Re: Review Request 42747: Audit shutdown hook should not only do its processing interruptibly but also have an upper bound on how long it runs

Posted by Alok Lal <al...@hortonworks.com>.

> On Jan. 25, 2016, 5:06 p.m., Madhan Neethiraj wrote:
> > agents-audit/src/main/java/org/apache/ranger/audit/provider/AuditProviderFactory.java, line 497
> > <https://reviews.apache.org/r/42747/diff/1/?file=1219827#file1219827line497>
> >
> >     Shouldn't cleanupThread marked as a daemon thread?

Yes, I'll submit new patch.


- Alok


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42747/#review116244
-----------------------------------------------------------


On Jan. 25, 2016, 2:27 p.m., Alok Lal wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42747/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2016, 2:27 p.m.)
> 
> 
> Review request for ranger and Madhan Neethiraj.
> 
> 
> Bugs: RANGER-821
>     https://issues.apache.org/jira/browse/RANGER-821
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Will port this to tip of 0.5, too.  Once approved I would like to treat it as an approval to port it to 0.5.x, too.
> 
> 
> Diffs
> -----
> 
>   agents-audit/src/main/java/org/apache/ranger/audit/provider/AuditProviderFactory.java 723b528 
> 
> Diff: https://reviews.apache.org/r/42747/diff/
> 
> 
> Testing
> -------
> 
> Simulated backlog in HDFS audit provider inside an HDFS plugin.  Issued shutdown of the NN and then observed that:
> - the shutdown hook was fired
> - the async hook did its work
> - Async thread got interrupted and then exited from its while loop
> - Shutdown hook thread exited
> - NN host services shutdown/pocess went away.
> 
> 
> Thanks,
> 
> Alok Lal
> 
>