lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claes Holmerson <>
Subject Lock handling
Date Wed, 25 Aug 2004 06:24:53 GMT

I am interested to hear how people handle locked indexes, for example 
when catching an IOException like below. Lock obtain timed out:
        at org.apache.lucene.index.IndexWriter.<init>(
        at org.apache.lucene.index.IndexWriter.<init>(

As far as I can tell, there is no good way to tell whether the lock is 
only temporary (working as it should), or if it was created by a process 
that later died, and therefore can not remove it. How can I detect the 
latter case, and how should I best handle it?


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

View raw message