jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-2752) The "jackrabbit-pool-" thread prevents the process from stopping
Date Wed, 03 Aug 2011 10:24:28 GMT

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

Jukka Zitting commented on JCR-2752:
------------------------------------

FWIW, I think a more proper fix to the this would be to change the test case to: new TransientRepository().login(...).logout();

> The "jackrabbit-pool-" thread prevents the process from stopping
> ----------------------------------------------------------------
>
>                 Key: JCR-2752
>                 URL: https://issues.apache.org/jira/browse/JCR-2752
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.0.0
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> If the repository is not closed, and a session is still logged in, then the process doesn't
terminate because of a non-daemon thread named "jackrabbit-pool-<n>". Test case:
> public class TestThreadPreventsExit {
>     public static void main(String... a) throws Exception {
>         new TransientRepository().login(
>                 new SimpleCredentials("", new char[0]));
>     }
> }
> This program doesn't stop.
> The non-daemon thread was introduces as part of https://issues.apache.org/jira/browse/JCR-2465
> The fix is to use a daemon thread.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message