lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Francl <>
Subject Re: Lucene : avoiding locking
Date Fri, 12 Nov 2004 16:04:00 GMT
On Fri, 2004-11-12 at 09:51, Luke Shannon wrote:
> Hi Luke;
> Currently I am experimenting with checking if the index is lock using
> IndexReader.locked before creating a writer. If this turns out to be the
> case I was thinking of just unlocking the file.
> Do you think this is a good strategy?

No, because if the index is locked, that means another thread or process
is writing to it.

If you're getting spurious locks, stop your application and clean our
the /tmp/ directory (you should see files named *lucene* -- these are
the lock files).


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

View raw message