[ 
https://issues.apache.org/jira/browse/HADOOP-8571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408081#comment-13408081
 ] 

Guillaume Nodet commented on HADOOP-8571:
-----------------------------------------

Yes, I want to first fix the 1.0 branch to be ready for OSGi and then backport 
everything to trunk.
I'll upload real patches and attach them the usual way (btw, I'm an ASF 
committer already, so I don't think such a grant is really needed in that case 
anyway).

Related to the changes, I think the most problematic problem is related to 
CleanupQueue which is a singleton with a thread wich is never stopped.  I think 
most of the other threads are controlled somehow, but I need to include the 
following code when stopping the OSGi bundles to correctly stop all the threads:

{code}
        FileSystem.closeAll();
        CleanupQueue.getInstance().stop();
        DefaultMetricsSystem.INSTANCE.shutdown();
{code}

                
> Improve resource cleaning when shutting down
> --------------------------------------------
>
>                 Key: HADOOP-8571
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8571
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 1.0.0, 2.0.0-alpha, 3.0.0
>            Reporter: Guillaume Nodet
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to