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

Leftover Jackrabbit thread after shutdown.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 4.4.8, 4.5.3
    • Fix Version/s: 4.5.x
    • Component/s: core
    • Labels:
    • Patch included:
      Yes

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dfghi Danilo Ghirardelli
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: