Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Daniel Fuchs
On 10/10/14 16:36, Stanimir Simeonoff wrote: The Handler automatic closure remains problematic as they don't have a defined lifecycle. close() should be invoked after there are no references and it requires calling a potentially overridden method. It can be carried by PhantomReference+WeakRefence

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Stanimir Simeonoff
.fu...@oracle.com > > To: stani...@riflexo.com > > CC: jason_mehr...@hotmail.com; core-libs-dev@openjdk.java.net > > Subject: Re: JDK-6774110 lock file is not deleted when child logger is > used > > > > Hi Stanimir, Jason, > > > > On 10/10/14 10:02, S

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Daniel Fuchs
--- Date: Fri, 10 Oct 2014 11:39:41 +0200 From: daniel.fu...@oracle.com To: stani...@riflexo.com CC: jason_mehr...@hotmail.com; core-libs-dev@openjdk.java.net Subject: Re: JDK-6774110 lock file is not deleted when child logger is used Hi Stanimir, Jason, On 10/10/14 10:02,

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Daniel Fuchs
Hi, I have logged https://bugs.openjdk.java.net/browse/JDK-8060132. I will start a new thread for discussing this issue. best regards, -- daniel On 10/10/14 10:02, Stanimir Simeonoff wrote: Hi, LogManager.reset() should invoke a package private method to delete all lock files. However, that

RE: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Jason Mehrens
e. Jason > Date: Fri, 10 Oct 2014 11:39:41 +0200 > From: daniel.fu...@oracle.com > To: stani...@riflexo.com > CC: jason_mehr...@hotmail.com; core-libs-dev@openjdk.java.net > Subject: Re: JDK-6774110 lock file is not deleted when child logger is used > > Hi Stanimi

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Daniel Fuchs
Hi Stanimir, Jason, On 10/10/14 10:02, Stanimir Simeonoff wrote: Hi, LogManager.reset() should invoke a package private method to delete all lock files. However, that would require holding the FileHandler.locks monitor during the resetting of FileHandlers, not just the deletion process. Somethi

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-10 Thread Stanimir Simeonoff
Hi, LogManager.reset() should invoke a package private method to delete all lock files. However, that would require holding the FileHandler.locks monitor during the resetting of FileHandlers, not just the deletion process. Something like that, plus new PrivilegedAction(). static void deleteAllLock

RE: JDK-6774110 lock file is not deleted when child logger is used

2014-10-09 Thread Jason Mehrens
logger.addHandler(new FileHandler(path)); } } > Date: Thu, 9 Oct 2014 22:59:43 +0200 > From: daniel.fu...@oracle.com > To: jason_mehr...@hotmail.com > CC: core-libs-dev@openjdk.java.net > Subject: Re: JDK-6774110 lock file is not deleted when

Re: JDK-6774110 lock file is not deleted when child logger is used

2014-10-09 Thread Daniel Fuchs
Thanks Jason. I wonder if that may be another issue. Interesting. I'll see if I can work out a test case for that tomorrow. With the test case provided in the bug - tested on 7, 8, and 9, the only file that remained at the end was 'log' (which is as it should be - and I ran the test case seve