Use SimpleFSLockFactory.  See the javadocs about locks being left
behind on abnormal JVM termination.

There was a thread on this list a while ago about some pros and cons
of using lucene on NFS.  2-Oct-2012 in fact.
http://mail-archives.apache.org/mod_mbox/lucene-java-user/201210.mbox/thread

--
Ian.


On Wed, Dec 19, 2012 at 8:14 PM, Bowden Wise <wi...@acm.org> wrote:
> Hello,
>
> I have been getting the following lock error when attempting to open an
> index writer to add new documents to an index.
> org.apache.lucene.store.LockObtainFailedException
> Lock obtain timed out:
> NativeFSLock@/opt/shared/data/CTXTMNG/PAC_INDEX/lucene/aero/prod/index/write.lock
>
> I believe this is because we are using NFS.
>
> Has anyone gotten Lucene to work on NFS? What steps did you take?
>
> Thanks
> Bowden

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to