RFR: 8252883: AccessDeniedException caused by delayed file deletion on Windows [v5]
Evan Whelan
ewhelan at openjdk.java.net
Mon Feb 22 09:50:06 UTC 2021
On Fri, 19 Feb 2021 14:06:23 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> LGTM
>
> I'm seeing some intermittent test failures with the new test (after merging in latest master changes). Can you retest and have a look:
>
> ----------System.out:(25/1343)----------
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Testing with arguments: type=process, count=20
> Thread-2 |Error: Could not find or load main class FileHandlerAccessTest
> Thread-2 |Caused by: java.lang.ClassNotFoundException: FileHandlerAccessTest
> Thread-6 |Error: Could not find or load main class FileHandlerAccessTest
> Thread-6 |Caused by: java.lang.ClassNotFoundException: FileHandlerAccessTest
> Thread-1 |Error: Could not find or load main class FileHandlerAccessTest
> Thread-1 |Caused by: java.lang.ClassNotFoundException: FileHandlerAccessTest
> Testing with arguments: type=process, count=20
> ----------System.err:(14/1024)----------
> java.lang.RuntimeException: java.lang.RuntimeException: An error occured in the child process.
> at FileHandlerAccessTest.accessProcess(FileHandlerAccessTest.java:96)
> at java.base/java.lang.Thread.run(Thread.java:831)
> Caused by: java.lang.RuntimeException: An error occured in the child process.
> at FileHandlerAccessTest.accessProcess(FileHandlerAccessTest.java:93)
> ... 1 more
> STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: An error occured in the child process.
> java.lang.RuntimeException: java.lang.RuntimeException: An error occured in the child process.
> at FileHandlerAccessTest.accessProcess(FileHandlerAccessTest.java:96)
> at java.base/java.lang.Thread.run(Thread.java:831)
> Caused by: java.lang.RuntimeException: An error occured in the child process.
> at FileHandlerAccessTest.accessProcess(FileHandlerAccessTest.java:93)
> ... 1 more
> STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: An error occured in the child process.
> ----------rerun:(39/6191)*----------
Hi,
I've removed the problematic "process" handling logic and have stripped the test back to only use threads.
The problem was reproducible (intermittently on my Windows machine) using this smaller test and should make the test more stable.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2572
More information about the core-libs-dev
mailing list