lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aad Nales" <aad.na...@rotterdam-cs.com>
Subject RE: lucene-??? files: are they ever deleted after? was: locking problems
Date Mon, 11 Oct 2004 14:08:12 GMT
Once again,

Thanks a bundle. I have added a check at server startup,

cheers,
Aad

-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] 
Sent: Monday, 11 October, 2004 15:09
To: Lucene Users List
Subject: Re: lucene-??? files: are they ever deleted after? was: locking
problems


Aad,

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.

Otis


--- Aad Nales <aad.nales@rotterdam-cs.com> 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
> aad.nales@rotterdam-cs.com, +31-(0)6 54 207 340
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


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





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


Mime
View raw message