lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: IndexWriter.isLock()
Date Wed, 09 May 2012 09:38:09 GMT
On Tue, May 8, 2012 at 12:31 AM, S Eslamian <seslamian@gmail.com> 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

http://blog.mikemccandless.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message