Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.05
-
Fix Version/s: 3.06
-
Component/s: Referencing
-
Labels:
Description
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.

Fix commited, but there is a risk of race condition during the execution of org.geotoolkit.internal.Threads.shutdown(). Waiting to see how it behaves in practice (and eventually complete the fix) before to close this issue.