jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Puchkovskiy (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (JCR-1636) Make shutdown hooks in TransientFileFactory removable
Date Wed, 02 Jul 2008 12:41:45 GMT

     [ https://issues.apache.org/jira/browse/JCR-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Roman Puchkovskiy reopened JCR-1636:
------------------------------------


I'm not sure is it correct to reopen the issue, but it turned out that the supplied patch
breaks class unloading in some cases. I'm going to attach a patch which stops the reaper thread
too, so no problems arise because of it.

> Make shutdown hooks in TransientFileFactory removable
> -----------------------------------------------------
>
>                 Key: JCR-1636
>                 URL: https://issues.apache.org/jira/browse/JCR-1636
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 1.4, commons 1.4.2
>            Reporter: Roman Puchkovskiy
>             Fix For: 1.5
>
>         Attachments: JCR-1636-workaround.patch
>
>
> TransientFileFactory class always registers shutdown hook. So, if jackrabbit classes
were loaded by web-app classloader, they will not be released when web-app is undeployed (if
jackrabbit-jcr-commons JAR is inside WAR). This causes classloader leak.
> It seems to be useful to have ability to cancel TransientFileFactory's shutdown hook
when application is going to be unloaded to avoid classloader leak.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message