File locking supported on all platforms?
Jonas Konrad
me at yawk.at
Tue Jul 14 09:59:01 UTC 2020
> I see NFS is mentioned in the discussion. Yes, there can be issues in
> NFS environments but if the lock daemon is not running on the remote NFS
> server then I would expect the lock or tryLock methods to throw an
> IOException "No locks available".
Nope, it'll just grant the lock twice. Linux fcntl will not return an
error so I don't see how the JDK could detect this case anyway
- Jonas
More information about the nio-dev
mailing list