lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: lucene-??? files: are they ever deleted after? was: locking problems
Date Mon, 11 Oct 2004 13:08:39 GMT

note that .../topic/temp is not always correct.  If you use Lucene
outside of Tomcat, the lock files will be stored elsewhere.

If IndexWriter/Readers are properly handled, they will clean up lock
files after themselves.  If something breaks (e.g. IOException because
you are out of disk space or because something kills the process), lock
files will remain and you will need to clean them up yourself. 
Checking whether these lock files are current or stale is something
you'll have to do in your application, I'm afraid, possibly using their
time stamps to determine this.


--- Aad Nales <> wrote:

> Hi,
> From earlier postings I understand that when lucene opens an
> IndexWriter
> or executes a number of specific methods on an IndexReader that a
> lock
> is created in .../tomcat/temp. My question is. Are these files ever
> deleted after something has gone wrong? For instance, when the server
> is
> restarted or something similar? If not, is there any way to figure
> out
> where the lock came from? e.g a timestamp as part of the filename?
> BTW: thanks for the earlier responses, I have a working solution
> now..
> Aad
> --
> Aad Nales
>, +31-(0)6 54 207 340 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message