lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Swanhart <>
Subject multiple threads
Date Fri, 01 Oct 2004 23:13:43 GMT
As I understand it, if two writers try to acess the same index for
writing, then one of the writers should block waiting for a lock until
the lock timeout period expires, and then they will return a "Lock
wait timeout" exception.

I have a multithreaded indexing applications that writes into one of
multiple indexes depending on a hash value, and I intend to merge all
the hashes when the indexing finishes.  Locking usually works but
sometimes it doesn't and I get IO exceptions such as the following.. Cannot delete _19.fnm
        at org.apache.lucene.index.SegmentMerger.createCompoundFile(
        at org.apache.lucene.index.SegmentMerger.merge(
        at org.apache.lucene.index.IndexWriter.mergeSegments(
        at org.apache.lucene.index.IndexWriter.optimize(
        at org.apache.lucene.index.IndexWriter.addIndexes(

Any idea on why this could be happening?  I am using NFS currently,
but the problem appears on the local filesystem as well.

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

View raw message