JDK 9 RFR of 8160220: (fs) Tests in jdk/test/java/nio/file/WatchService leave directory trees behind

Alan Bateman Alan.Bateman at oracle.com
Tue Jul 12 16:57:00 UTC 2016



On 12/07/2016 17:40, Brian Burkhalter wrote:
> On Jul 11, 2016, at 11:28 PM, Alan Bateman <Alan.Bateman at oracle.com 
> <mailto:Alan.Bateman at oracle.com>> wrote:
>
>>> 2) LotsOfCancels
>>>
>>> Add (probably redundant) deletion of temporary file tree.
>>>
>> The tests in this area use TestUtil.removeAll so you don't need to 
>> add deleteFileTree. Also if you expand the scope of the try/finally 
>> then you can get rid of deleteOnExit.
>
> The change for https://bugs.openjdk.java.net/browse/JDK-8160687 showed 
> that LotsOfCancels was leaving files around before this change so 
> there must be something else going on which needs to be identified.
>
Yes, I suspect there was a VM crash at some point in the VM that happen 
to have run this test. The main issue with agentvm mode is that it runs 
many tests before it exists and so the delete-on-exit list builds up.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160712/b9bc5392/attachment.html>


More information about the nio-dev mailing list