RFR: 7900051 - jtreg cleanup intermittentely fails to delete files on Windows

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Feb 6 18:20:15 PST 2013


Jim,

Sorry for the delay; thanks for the reminder.

To get from milliseconds to seconds, you divide by 1000, not multiply by 
it ;-)  In two places.

I don't think you should log messages about deleting files. Some tests 
generate *lots* of files, and it would be unacceptable to report them 
being deleted, one by one.   I can see that occasionally you might want 
to see this level of details, but it should be enabled by setting a 
system property such as javatest.regtest.showDeleteFiles and should be 
off by default. Reporting issues when files cannot be deleted, such as 
ScratchDirectory.java:191(new) is acceptable.

-- Jon


On 02/06/2013 09:22 AM, Jim Gish wrote:
> I haven't heard back on this one yet.  Any comments?
>
> Thanks,
>     Jim
>
> On 01/23/2013 04:24 PM, Jim Gish wrote:
>> Please review: 
>> http://cr.openjdk.java.net/~jgish/Bug7900051-DeleteRetry/ 
>> <http://cr.openjdk.java.net/%7Ejgish/Bug7900051-DeleteRetry/>
>>
>> Summary: this change adds delete retry logic on Windows similar to 
>> that that is already there on init.  It also consolidates the delete 
>> methods.  Instead of trying some N times with Delta msec. delay in 
>> between, it now tries for up to 30 seconds with Delta (500 msec) 
>> delay in between.
>>
>> Thanks,
>>    Jim
>> -- 
>> Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304
>> Oracle Java Platform Group | Core Libraries Team
>> 35 Network Drive
>> Burlington, MA 01803
>> jim.gish at oracle.com
>
> -- 
> Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304
> Oracle Java Platform Group | Core Libraries Team
> 35 Network Drive
> Burlington, MA 01803
> jim.gish at oracle.com



More information about the jtreg-dev mailing list