You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Aad Nales <aa...@rotterdam-cs.com> on 2004/10/11 13:25:44 UTC

lucene-??? files: are they ever deleted after? was: locking problems

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


RE: lucene-??? files: are they ever deleted after? was: locking problems

Posted by Aad Nales <aa...@rotterdam-cs.com>.
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 <aa...@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


Re: lucene-??? files: are they ever deleted after? was: locking problems

Posted by Otis Gospodnetic <ot...@yahoo.com>.
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 <aa...@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