Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4456

Leftover Jackrabbit thread after shutdown.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Neutral Neutral
    • 4.5.x
    • 4.4.8, 4.5.3
    • core

      When shutting down Jackrabbit repositories, at least in the 1.6 version of Jackrabbit, Magnolia leaves the Transient File Reaper thread active without apparent reason.
      Restarting the app a few times without restarting the application server will leave a bunch of these threads open, thus wasting the thread pool.

      The attached patch simply shuts down the TransientFileFactory after the repositories shutdown.

      There is a note on the shutdown method that left me a little doubt: obviously repositories are started by the webapp itself and the method is called just after the repo shutdown, but I have no idea on how to check that the TransientFileFactory was loaded within the webapp classloader... Are there Magnolia configuration in which this is not true? Is it really possible to add a check?

        Acceptance criteria

              Unassigned Unassigned
              dfghi Danilo Ghirardelli
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD