Review request: 8004042 : Arrrghs.java test failed on windows with access error.
stuart.marks at oracle.com
Sat Dec 8 00:58:24 UTC 2012
On 12/7/12 1:39 PM, David DeHaven wrote:
> Hopefully final webrev for this change:
> I moved the createBatFile method to TestHelper as I thought it could be useful to other tests and added more diagnostic info.
> It turns out the culprit on my machine was Windows' "Application Experience" service. Each time the batch file is launched svchost.exe tries to access the file, if it doesn't release it's file locks quickly enough then when java attempts to create a new file it fails with AccessDeniedException. In procmon this was showing up as a "DELETE PENDING" result, followed by svchost.exe getting the same result at least twice then giving up. Disabling that service allowed me to run my filesystem tests unpatched without failing.
> I don't see any other option to fix this as this is somewhat expected of asynchronous access in a multitasking environment. Maybe there's some means to synchronously delete files...
Ah, the mysteries of Windows. The test looks fine.
More information about the core-libs-dev