RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock.
Alan Bateman
alanb at openjdk.org
Mon Aug 21 07:17:30 UTC 2023
On Mon, 21 Aug 2023 06:48:18 GMT, David Holmes <dholmes at openjdk.org> wrote:
> How long is the file-lock typically held? How many such tests can run concurrently? And how long do we retry for?
It's typically the sync method when writing back the cached changes. I suspect the Unix implementation could be easily re-written to use FileChannel and Files.setPosixFilePermissions and that would eliminate the native code and give better exception messages when there are errors.
For the tests, I'm surprised the TEST.properties in this directory doesn't have exclusiveAccess.dirs=. as there has been historical issues with interference between tests in this area.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1685778195
More information about the core-libs-dev
mailing list