RFR: 8252883: AccessDeniedException caused by delayed file deletion on Windows [v5]
Daniel Fuchs
dfuchs at openjdk.java.net
Tue Feb 23 10:19:40 UTC 2021
On Mon, 22 Feb 2021 09:46:56 GMT, Evan Whelan <ewhelan at openjdk.org> wrote:
>> 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.
Does the new version of the test still occasionally catches the issue and fails if the fix is not present?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2572
More information about the core-libs-dev
mailing list