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 Wed, 09 May 2012 09:38:09 GMT
On Tue, May 8, 2012 at 12:31 AM, S Eslamian <> wrote:

> So if my program interrupts, the lock files in the indexes will be released
> in the next run. hoom?

If you use NativeFSLockFactory (which is the default for
NIOFSDirectory) then, yes, the lock is always released by the OS when
the process exits.

> That's so good. Thank you Mr.McCandless for your help.

You're welcome!

Mike McCandless

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

View raw message