[jdk8u-dev] RFR: 8295982: Failure in sun/security/tools/keytool/WeakAlg.java - ks: The process cannot access the file because it is being used by another process
Roman Marchenko
rmarchenko at openjdk.org
Thu Dec 1 10:35:49 UTC 2022
On Sat, 29 Oct 2022 21:25:40 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:
> Test sun/security/tools/keytool/WeakAlg.java occasionally fails on Windows 64 bit (win2016, win11) with the following message "java.nio.file.FileSystemException: ks: The process cannot access the file because it is being used by another process".
>
> The root cause of the problem is "ks" file is still open by FileInputStream instance used by KeyStore in the test code. Perhaps, forcing GC to run may avoid this issue, but I guess explicit closing of the input stream is more suitable here.
>
> No regression, only the test code is changed.
> The test passes on Windows and Linux now.
up
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/150
More information about the jdk8u-dev
mailing list