RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock. [v5]
Matthias Baesken
mbaesken at openjdk.org
Fri Sep 8 07:10:19 UTC 2023
> We run into some BackingStoreException: Couldn't get file lock. e.g. here :
>
> [JShell] Exception in thread "main" java.lang.IllegalStateException: java.util.prefs.BackingStoreException: Couldn't get file lock.
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.flush(JShellToolBuilder.java:313)
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellTool$ReplayableHistory.storeHistory(JShellTool.java:692)
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:1008)
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:261)
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
> [JShell] Caused by: java.util.prefs.BackingStoreException: Couldn't get file lock.
> [JShell] at java.prefs/java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:769)
> [JShell] at java.prefs/java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:864)
> [JShell] at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.flush(JShellToolBuilder.java:311)
> [JShell] ... 4 more
>
> The BackingStoreException should be enhanced e.g. by adding the errno/errorCode that is already available in the coding
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
remove unneeded empty line
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/15308/files
- new: https://git.openjdk.org/jdk/pull/15308/files/b63064ec..5e3108b8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=15308&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=15308&range=03-04
Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/15308.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15308/head:pull/15308
PR: https://git.openjdk.org/jdk/pull/15308
More information about the core-libs-dev
mailing list