lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: NFS/iSCSI SAN with Lucene
Date Wed, 19 Jul 2006 21:48:59 GMT

> I did a search on the Lucene list archives, found a lot of posts about
> the use of Lucene with NFS and how there are locking issues, but don't
> see anybody coming to a real solution to this.

We are trying to fix this.  Many people seem to hit it.

The current plan is to first decouple the Locking implementation from 
the Directory implementation:

and then create a Locking implementation that uses native OS locks 
instead of the simple file-existence locks (used now) that do not work 
with NFS.

But the development is still in process and so it won't be until a 
future Lucene release that this is fixed correctly.

A very good workaround is to use or be inspired by the approach that the 
Solr project:

uses, described here:

The gist is, your single Java process that has an IndexWriter 
periodically snapshots the index at a known-safe time, and then the 
multiple Searchers switch to the latest snapshot once the snapshot is 

Solr actually distributes copies of the index to each Searcher's local 
storage, but you could probably modify this approach so that, instead, 
the Searchers all share a single copy off your SAN.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message