Maxim Zinal created JCR-3736:
--------------------------------

             Summary: JackRabbit leaves running "Transient File Reaper" thread 
after repository shutdown
                 Key: JCR-3736
                 URL: https://issues.apache.org/jira/browse/JCR-3736
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.6.5
         Environment: Debian/GNU Linux 7.1 on x86-64 
Java(TM) SE Runtime Environment (build 1.7.0_25-b15) 
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) 
Apache Tomcat 7.0.47
            Reporter: Maxim Zinal
            Priority: Minor


After shutting down JackRabbit repository, the thread "Transient File Reaper" 
is left running. This might cause some resource leaks in case of multiple web 
application redeployments on the same running application server instances.

This thread is created by calling TransientFileFactory's getInstance() method 
during shutdown sequence (specifically this method is called from 
DatabaseFileSystem's getOutputStream() method, see line 709.

As a workaround, I've added "TransientFileFactory.shutdown();" to my 
application shutdown code right after stopping JackRabbit repository.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to