RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock.

Matthias Baesken mbaesken at openjdk.org
Tue Aug 22 07:51:29 UTC 2023


On Mon, 21 Aug 2023 07:14:28 GMT, Alan Bateman <alanb 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.

Hi Alan, should we maybe add this ?  If so in this change on in another one ?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1687654412


More information about the core-libs-dev mailing list