[jdk8u-dev] Integrated: 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 15:29:09 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.
This pull request has now been integrated.
Changeset: 8356d04a
Author: Roman Marchenko <rmarchenko at openjdk.org>
Committer: Andrew Brygin <bae at openjdk.org>
URL: https://git.openjdk.org/jdk8u-dev/commit/8356d04acbbb3c31c4baea034fce2f7bc0691847
Stats: 9 lines in 1 file changed: 6 ins; 0 del; 3 mod
8295982: Failure in sun/security/tools/keytool/WeakAlg.java - ks: The process cannot access the file because it is being used by another process
Reviewed-by: dcherepanov
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/150
More information about the jdk8u-dev
mailing list