RFR: 8315034 : File.mkdirs() occasionally fails to create folders on Windows shared folder
Weibing Xiao
wxiao at openjdk.org
Thu Jul 18 19:18:41 UTC 2024
On Fri, 3 Nov 2023 18:11:10 GMT, Weibing Xiao <wxiao 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.
It was not backport to jdk8u. https://bugs.openjdk.org/browse/JDK-8321863 is for 8u411-perf, which is not same as jdk8u release.
The bug originally was reported in jdk11, not in jdk8. That’s the reason I did not backport the change to jdk8u.
From: Brian Burkhalter ***@***.***>
Date: Thursday, July 18, 2024 at 2:41 PM
To: openjdk/jdk ***@***.***>
Cc: Weibing Xiao ***@***.***>, Mention ***@***.***>
Subject: [External] : Re: [openjdk/jdk] 8315034 : File.mkdirs() occasionally fails to create folders on Windows shared folder (PR #16502)
Hello, Has this been backported to Java 8 ? I can't really find the info.
According to the issue JDK-8321863<https://bugs.openjdk.org/browse/JDK-8321863> it looks like it has been so backported.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/openjdk/jdk/pull/16502*issuecomment-2237262955__;Iw!!ACWV5N9M2RV99hQ!PR2KjEjBmXU6E3-YKNOLy6jy2YB1Jw62HIhlGjb-fQ89qh4isQZVzbCbcjG-E9OSqjtmIyl6v3T9sPnktnn5mN-1l2w$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AP4PT5FJ7OUTZFDXWI3ZECDZNAD6JAVCNFSM6AAAAABKW6VHHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGI3DEOJVGU__;!!ACWV5N9M2RV99hQ!PR2KjEjBmXU6E3-YKNOLy6jy2YB1Jw62HIhlGjb-fQ89qh4isQZVzbCbcjG-E9OSqjtmIyl6v3T9sPnktnn5NbZaCuI$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16502#issuecomment-2237355311
More information about the core-libs-dev
mailing list