JDK-8060132 : Handlers configured on abstract nodes in logging.properties are not always properly closed
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-10-10
  • Updated: 2017-05-17
  • Resolved: 2014-11-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b42Fixed
Related Reports
Relates :  
Sub Tasks
JDK-8175264 :  
Description
If a handler is configured in logging.properties for an abstract node in the logger hierarchy, that is, a node for which the application doesn't keep a strong logger reference, then that node may be garbage collected before the LogManager's Cleaner thread is run - and its associated handlers will not be properly closed at system exit.

For instance, if the logging.properties files defines a handler for com.foo, and the application creates a com.foo.child logger, then com.foo will be garbage collected shortly after com.foo.child, and the handler that the LogManager created for com.foo will not be closed. 
The observable symptom is that the lock file associated with any FileHandler configured for com.foo will not be deleted at system exit, since at that time the com.foo logger may have been already garbage collected.
Comments
Review Thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-October/029052.html http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-November/029481.html
06-11-2014

This may - or may not be - the issue that was described in JDK-6774110. See http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-October/029038.html
10-10-2014