From lucene-user-return-10642-apmail-jakarta-lucene-user-archive=jakarta.apache.org@jakarta.apache.org Mon Oct 11 14:08:53 2004 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 13018 invoked from network); 11 Oct 2004 14:08:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Oct 2004 14:08:53 -0000 Received: (qmail 70027 invoked by uid 500); 11 Oct 2004 14:08:26 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 69993 invoked by uid 500); 11 Oct 2004 14:08:26 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 69978 invoked by uid 99); 11 Oct 2004 14:08:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [82.199.128.14] (HELO andromeda.dutchdsl.net) (82.199.128.14) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Oct 2004 07:08:24 -0700 Received: from aadlaptop (dsl-82-199-135-164.dutchdsl.nl [82.199.135.164]) by andromeda.dutchdsl.net (Postfix) with ESMTP id 1AC171E1 for ; Mon, 11 Oct 2004 16:06:20 +0200 (CEST) From: "Aad Nales" To: "'Lucene Users List'" Subject: RE: lucene-??? files: are they ever deleted after? was: locking problems Date: Mon, 11 Oct 2004 16:08:12 +0200 Message-ID: <000101c4af9b$bec6ae60$59edfea9@aadlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <20041011130839.86732.qmail@web12701.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 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