lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer" <simon.willna...@googlemail.com>
Subject Re: Multiple lock files
Date Tue, 08 Aug 2006 17:44:01 GMT
You can start your applications with a system property set:
"org.apache.lucene.lockDir"
to specify your lock directory

Hope that helps...

regards Simon

On 8/8/06, Leandro Saad <leandro.saad@gmail.com> wrote:
> Yeah. But how do I know if a lock file is related to an index or app? I
> don't want to remove a lock file that another app is using
>
> :: Leandro
>
> On 8/8/06, Michael McCandless <lucene@mikemccandless.com> wrote:
> >
> >
> > > How do I remove lucene locks (startup) if there are multiple
> > applications
> > > using lucene on the same box and all use the same lock dir?
> >
> > The lock files are just files, so you can up and remove them.
> >
> > However: this is in general dangerous and should not be necessary.
> >
> > Lucene uses the lock files to ensure index readers/writers across
> > different JVMs, or within a single JVM, do not step on each other.  If
> > you remove them you can corrupt your index.
> >
> > It's fine if you have multiple Lucene indices sharing the same lock
> > directory; each index will create a different name for its lock file.
> >
> > Mike
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
>
>

---------------------------------------------------------------------
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