RFR: 8315034 : File.mkdirs() occasionally fails to create folders on Windows shared folder
Brian Burkhalter
bpb at openjdk.org
Thu Nov 30 17:18:10 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.
Marked as reviewed by bpb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/16502#pullrequestreview-1758000120
More information about the core-libs-dev
mailing list