Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 62013 invoked from network); 17 Mar 2006 03:12:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 03:12:38 -0000 Received: (qmail 75425 invoked by uid 500); 17 Mar 2006 03:12:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75391 invoked by uid 500); 17 Mar 2006 03:12:33 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 75380 invoked by uid 99); 17 Mar 2006 03:12:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 19:12:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 19:12:32 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 4FF975B766; Thu, 16 Mar 2006 19:12:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 48EB47F403 for ; Thu, 16 Mar 2006 19:12:12 -0800 (PST) Date: Thu, 16 Mar 2006 19:12:12 -0800 (PST) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: restart interrupted index In-Reply-To: <6026e8b0603161904u3da97afcj479076f738b08510@mail.gmail.com> Message-ID: References: <6026e8b0603161904u3da97afcj479076f738b08510@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : If I interrupt my IndexWriter with a kill signal, must of the time I : will be left with a lock file AND corrupted index files (the searcher : will throw some IllegalStateExceptions after the lock file is : deleted). if you are trying to deal with teh possibility that your indexing process might crash hard, then there's not much you can do about the possibiity of your index getting corrupted ... that's where backups are useful. if you are trying to have a way to "cancel" your indexing process and then start again later that's not really an issue with lucene -- you just need a cleaner way to notify your application that you want it to stop, close whatever IndexWriter/IndexReader you may be useing and shutdown cleanly. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org