lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: IndexWriter.isLock()
Date Mon, 07 May 2012 12:34:32 GMT
On Mon, May 7, 2012 at 7:19 AM, S Eslamian <> wrote:
> hmm... , What is a leftover lock file?
> You know I debug my code, befor index folder has lock file, till line 7.
> Then I close the program, like in a real run an interrupt has happened.

How do you close it?  Just kill the process?  That is what creates a
leftover lock file...

But with native locking, even though there is still a leftover lock
file in the filesystem, the lock is in fact released.

So then when you start up and run your test, IW.isLocked returns
false, and as a side effect removes the leftover lock file.

Mike McCandless

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

View raw message