On Mon, May 7, 2012 at 7:19 AM, S Eslamian <seslam...@gmail.com> 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 http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org