Chris Hostetter wrote:
: Ah, I hadn't realized that they might not be supported everywhere... I
I'm just trusting the javadoc for NativeFSLockFactory ... i have no idea
if it's accurate or not.
Hi! I had added the caveat about native locks based on my dicey
experience getting them working over NFS (NFS locking was not "turned
on" by default in my setup; and, frustratingly, it would take ~35
seconds for a timeout to tell me this).
I don't have any specific evidence that other OS/filesystems are
problematic but then again I haven't done much research to understand
overall portability of Java's native lock interface. It would not
surprise me if other OS/filesystems had issues.
I was hoping by getting the NativeFSLockFactory out there that it
would get some healthy testing first and then we could use that
feedback to decide whether benefits outweigh the risks of making it
the default. It's not clear how many people have actually tested it
at this point, though!
: The current locking can also guard against mistakes though (multiple
: instances of Solr trying to write to the same dir, someone opening a
: Luke index on it, etc).
right ... but it's only useful if all of the potential clients are using
the same locking mechanism ... right now it's only safe to do any of those
things if all the apps use SimpleFSLockFactory. all the more reason to
make the factory and the lockDir configurable in Solr i guess.
Mike