Integrated: 8315034 : File.mkdirs() occasionally fails to create folders on Windows shared folder

Weibing Xiao duke at openjdk.org
Thu Nov 30 17:38:21 UTC 2023


On Fri, 3 Nov 2023 18:11:10 GMT, Weibing Xiao <duke at openjdk.org> wrote:

> File.mkdirs() occasionally fails to create folders on Windows shared folders. It turned out that Windows API FindFirstFileW created the error ERROR_NO_MORE_FILES. In some of the cases with a valid file path, this error still returns this error code, which supposedly should not.
> 
> Adding this error code into the method of lastErrorReportable in the native code will be handled by JDK.
> 
> To test the fix, it needs to run three Java processes to create the folders on a remote file server.

This pull request has now been integrated.

Changeset: 7ad70059
Author:    Weibing Xiao <weibing.xiao at oracle.com>
Committer: Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7ad700596fbc58c27fedfa46755e80ea57712fac
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8315034: File.mkdirs() occasionally fails to create folders on Windows shared folder

Reviewed-by: bpb

-------------

PR: https://git.openjdk.org/jdk/pull/16502


More information about the core-libs-dev mailing list