lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: Recovering from a Crash
Date Wed, 25 Jul 2007 09:53:04 GMT
> > The data appears to be there - please tell me that I'm doing something
> > stupid and I can recover from this.
> It appears by deleting the write.lock files everything has recovered.

Hmmm -- it's odd that the existence of the write.lock caused you to
lose most of your index.  All that should have happened here is on
creating a new writer it would throw a LockObtainTimedOut exception
saying it could not obtain the write lock.  I don't see how this would
cause most of your index to be deleted...

> Is this best practice? Have I just done something so terribly wrong
> that I've bought about the end of the universe?

Universe seems intact on my end :)  But yes deleting the write.lock is
the right thing to do in this case.  You can also switch to native
locking (NativeFSLockFactory) and then the OS would free the lock
so you would not have to delete the write.lock manually...


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

View raw message