Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2752

The "jackrabbit-pool-" thread prevents the process from stopping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.2
    • jackrabbit-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: