Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 61881 invoked from network); 17 Nov 2006 03:16:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 03:16:34 -0000 Received: (qmail 73157 invoked by uid 500); 17 Nov 2006 03:16:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73122 invoked by uid 500); 17 Nov 2006 03:16:39 -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 73111 invoked by uid 99); 17 Nov 2006 03:16:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 19:16:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 19:16:24 -0800 Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 91A4CDC8978 for ; Thu, 16 Nov 2006 22:16:00 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by db2.internal (MEProxy); Thu, 16 Nov 2006 22:16:03 -0500 X-Sasl-enc: ZisN+nI1hML/OPZ7dLRCrGNdOINMKnzeGHZPwTMl56Sw 1163733285 Received: from [10.17.4.90] (pool-72-70-33-214.bstnma.fios.verizon.net [72.70.33.214]) by mail.messagingengine.com (Postfix) with ESMTP id A9BF6159BC for ; Thu, 16 Nov 2006 22:14:45 -0500 (EST) Message-ID: <455D291B.2000704@mikemccandless.com> Date: Thu, 16 Nov 2006 22:14:35 -0500 From: Michael McCandless User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: IOException question References: <455D22FA.8070400@teamware.com> In-Reply-To: <455D22FA.8070400@teamware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Antony Bowesman wrote: > Hi, > > I have the IndexWriter.infoStream set to System.out and get the following > > merging segments _4m (2 docs) _4n (1 docs) into _4o (3 docs) > java.io.IOException: Cannot delete PathToDB\_29.cfs; Will re-try later. > java.io.IOException: Cannot delete PathToDB\_29.cfs; Will re-try later. > > Is this normal? IndexWriter.deleteFiles() is giving the message and it > explicitly catches the IOException which is what makes me think it might > be normal. Do you also have a reader open against this index? If yes, then this is totally normal on Windows. A reader holds open the segments cfs files that it is using, so when the writer tries to delete them (because they were merged) the delete fails and Lucene will try again later. Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org