Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-07 Thread Daniel Fuchs
Thanks Alan! Just for the record the 'final' webrev is here: http://cr.openjdk.java.net/~dfuchs/webrev_8048020/webrev.02 I will push this shortly... -- daniel On 7/4/14 8:24 PM, Alan Bateman wrote: On 04/07/2014 19:10, Daniel Fuchs wrote: hmmm. yes - you're right. I should catch that to and

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-04 Thread Alan Bateman
On 04/07/2014 19:10, Daniel Fuchs wrote: hmmm. yes - you're right. I should catch that to and break the loop in that case. So that would become: 465 } catch (NoSuchFileException x) { 466 // Race condition - retry once, and if that

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-04 Thread Daniel Fuchs
On 7/4/14 7:58 PM, Alan Bateman wrote: On 04/07/2014 18:25, Daniel Fuchs wrote: Given that nothing is going to be written to the file then maybe I don't need APPEND. I just don't want the call to FileChannel.open() to truncate the file. APPEND should be harmless here, just not needed. Als

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-04 Thread Alan Bateman
On 04/07/2014 18:25, Daniel Fuchs wrote: Given that nothing is going to be written to the file then maybe I don't need APPEND. I just don't want the call to FileChannel.open() to truncate the file. APPEND should be harmless here, just not needed. Also you catch FileNotFoundException (which

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-04 Thread Daniel Fuchs
On 7/4/14 6:35 PM, Alan Bateman wrote: On 01/07/2014 10:25, Daniel Fuchs wrote: Hi Jason, Alan, Here is an updated version of the fix that does a bounded retry (retries once - and if it fails, proceeds with the next name). I have also added NO_FOLLOW_LINKS - for the case where we try to open a

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-04 Thread Alan Bateman
On 01/07/2014 10:25, Daniel Fuchs wrote: Hi Jason, Alan, Here is an updated version of the fix that does a bounded retry (retries once - and if it fails, proceeds with the next name). I have also added NO_FOLLOW_LINKS - for the case where we try to open an existing Lockfile, and suppressed the

RE: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-01 Thread Jason Mehrens
--- >>> Date: Tue, 24 Jun 2014 20:34:46 +0200 >>> From: daniel.fu...@oracle.com >>> To: core-libs-dev@openjdk.java.net >>> CC: jason_mehr...@hotmail.com; alan.bate...@oracle.com >>> Subject: RFR: 8048020 - Regression on java.util.logging.FileHandler >>> >&

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-07-01 Thread Daniel Fuchs
Jason Date: Tue, 24 Jun 2014 20:34:46 +0200 From: daniel.fu...@oracle.com To: core-libs-dev@openjdk.java.net CC: jason_mehr...@hotmail.com; alan.bate...@oracle.com Subject: RFR: 8048020 - Regression on java.util.logging.FileHandler Hi, Please find below

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-25 Thread Alan Bateman
On 25/06/2014 16:21, Daniel Fuchs wrote: On 6/25/14 5:07 PM, Alan Bateman wrote: Catching OverlappingFileLockException is usually a sign of a mis-use. Can you summarize how this comes about (given the locking on "locks"). A file is just a file. So nothing prevents some other piece of code in t

RE: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-25 Thread Jason Mehrens
Alan, > Catching OverlappingFileLockException is usually a sign of a mis-use. > Can you summarize how this comes about (given the locking on "locks"). Malicious intent or ignorant mis-use by code outside of the FileHandler can turn the FileHandler into a victim of that misuse. === pub

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-25 Thread Daniel Fuchs
On 6/25/14 5:07 PM, Alan Bateman wrote: On 24/06/2014 19:34, Daniel Fuchs wrote: Hi, Please find below a patch [1] for [2]: 8048020 - Regression on java.util.logging.FileHandler This corresponds to the problem that was discussed on this list in the following email thread: "Zombie FileHandler

Re: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-25 Thread Alan Bateman
On 24/06/2014 19:34, Daniel Fuchs wrote: Hi, Please find below a patch [1] for [2]: 8048020 - Regression on java.util.logging.FileHandler This corresponds to the problem that was discussed on this list in the following email thread: "Zombie FileHandler locks can exhaust all available log file

RE: RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-25 Thread Jason Mehrens
; From: daniel.fu...@oracle.com > To: core-libs-dev@openjdk.java.net > CC: jason_mehr...@hotmail.com; alan.bate...@oracle.com > Subject: RFR: 8048020 - Regression on java.util.logging.FileHandler > > Hi, > > Please find below a patch [1] for [2]: > > 8048020 - Regression

RFR: 8048020 - Regression on java.util.logging.FileHandler

2014-06-24 Thread Daniel Fuchs
Hi, Please find below a patch [1] for [2]: 8048020 - Regression on java.util.logging.FileHandler This corresponds to the problem that was discussed on this list in the following email thread: "Zombie FileHandler locks can exhaust all available log file locks." http://mail.openjdk.java.net/pipe