: Any reason we shouldn't switch to native locks by default? : In the future, read-only readers won't lock at all, but there will : still be a write lock for writers.
just to clarify for people who may not be familiar (i had to go reread the LockFactory docs to remember) Native Locks may not be supported on all OSes, but have the perk of being cleaned up automatically in the event of a JVM crash. Are you thinking we would add a new solrconfig.xml option to control this and default it to native locks? this is the first time i've noticed the SingleInstanceLockFactory ... in most cases couldn't we use that for Solr? I imagine we'll always need to support lock files if we wanted to make sure we can do some of hte "can i point Solr and an index created by _____" use cases people have been asking about lately, ... but for the "normal" usage of Solr, isn't that good enough? -Hoss
