[geotk] [JIRA] Created: (GEOTK-63) Background threads managed by ThreadedAuthorityFactory delay JVM exit.

Martin Desruisseaux (JIRA) jira at geomatys.com
Wed Nov 11 09:02:34 EST 2009


Background threads managed by ThreadedAuthorityFactory delay JVM exit.
----------------------------------------------------------------------

                 Key: GEOTK-63
                 URL: http://jira.geotoolkit.org/browse/GEOTK-63
             Project: Geotoolkit
          Issue Type: Bug
          Components: Referencing
    Affects Versions: 3.05
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 3.06


{{ThreadedAuthorityFactory}} creates a few background threads for closing the JDBC connections after a timeout. However those threads delay the JVM exit by an amount of time approximatively equals to the timeout, which is about one minute in current implementation.

To allow immediate JVM exit, we need to declare those threads as _daemon threads_, except if they are executed during a JVM shutdown in which case we want to let the threads complete. I'm not sure however if marking a thread as non-daemon is suffisient - once a JVM shutdown is initiated, it may be too late.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Geotoolkit mailing list