Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8263285 | 16.0.2 | Evan Whelan | P3 | Resolved | Fixed | b01 |
JDK-8262874 | 16.0.1 | Evan Whelan | P3 | Resolved | Fixed | b08 |
JDK-8267680 | 15.0.4 | Yuri Nesterenko | P3 | Resolved | Fixed | b03 |
JDK-8267456 | 13.0.8 | Yuri Nesterenko | P3 | Resolved | Fixed | b03 |
JDK-8263082 | 11.0.12-oracle | Dukebot | P3 | Resolved | Fixed | b01 |
JDK-8263814 | 11.0.12 | Evan Whelan | P3 | Resolved | Fixed | b01 |
JDK-8267048 | openjdk8u302 | Evan Whelan | P3 | Resolved | Fixed | b03 |
JDK-8263083 | 8u301 | Evan Whelan | P3 | Resolved | Fixed | b01 |
From their analysis, the exception could be caused by the file deletion mechanism of Windows OS. The basic steps are illustrated below:
1. A Java process submit a request to delete a lock file
2. The control is returned from the method but the actual deletion is
delayed by Windows.
3. Before the lock file is actually removed, another Java process tries to create a file of same name which throws an AccessDeniedException.
Stack Trace(8u121):
java.nio.file.AccessDeniedException: xxx.log.lck
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at
sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.
java:115)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at java.util.logging.FileHandler.openFiles(FileHandler.java:459)
at java.util.logging.FileHandler.<init>(FileHandler.java:402)
Customer's request is how they should work around such a situation.
e.g.
Should deal with the exception in try-cath block in application code
Should deal with the exception in the internal JDK's implementation
Others
- backported by
-
JDK-8262874 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8263082 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8263083 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8263285 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8263814 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8267048 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8267456 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
-
JDK-8267680 AccessDeniedException caused by delayed file deletion on Windows
- Resolved
- links to
-
Commit openjdk/jdk13u-dev/32f107ad
-
Commit openjdk/jdk15u-dev/e266324a
-
Commit openjdk/jdk16u/37544901
-
Commit openjdk/jdk/ebdc80ea
-
Review openjdk/jdk13u-dev/212
-
Review openjdk/jdk15u-dev/66
-
Review openjdk/jdk16u/56
-
Review openjdk/jdk/2572