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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to