Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 86185 invoked from network); 26 Feb 2007 23:57:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 23:57:20 -0000 Received: (qmail 8814 invoked by uid 500); 26 Feb 2007 23:57:23 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 8452 invoked by uid 500); 26 Feb 2007 23:57:22 -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 8441 invoked by uid 99); 26 Feb 2007 23:57:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 15:57:22 -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.29] (HELO out5.smtp.messagingengine.com) (66.111.4.29) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 15:57:11 -0800 Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 4B4941E11D9 for ; Mon, 26 Feb 2007 18:56:50 -0500 (EST) Received: from web4.messagingengine.com ([10.202.2.213]) by out1.internal (MEProxy); Mon, 26 Feb 2007 18:56:50 -0500 Received: by web4.messagingengine.com (Postfix, from userid 99) id 288B1161473; Mon, 26 Feb 2007 18:56:50 -0500 (EST) Message-Id: <1172534210.8331.1176655421@webmail.messagingengine.com> X-Sasl-Enc: ddc4EwQbNkEwGnlIcCZPv6sh6Joe3EC+AKbOc/3nq7O8 1172534210 From: "Michael McCandless" To: java-user@lucene.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <45E36A58.6020302@web.de> Subject: Re: Indexing-Error: Cannot delete In-Reply-To: <45E36A58.6020302@web.de> Date: Mon, 26 Feb 2007 18:56:50 -0500 X-Virus-Checked: Checked by ClamAV on apache.org "robisbob" wrote: > i hope someone can help me. If I index a file directory I get the error > you see here. > > caught a class java.io.IOException > > with message: Cannot delete _57e.tis > > Exception in thread "main" java.io.IOException: Cannot delete _57e.tis > > at > > org.apache.lucene.store.FSDirectory.deleteFile(FSDirectory.java:198) > > at > > org.apache.lucene.index.SegmentMerger.createCompoundFile(SegmentMerger.java:157) > > at > > org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:100) > > at > > org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:487) > > at > > org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:458) > > at > > org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:310) > > So Lucene tries to delete this file, which exists and can be deleted > manually. But somehow Lucene can't. > The weird thing is, if I index the same directory (same content, not > same network) on my local machine, there is no such error. > I have searched the Internet for these kind of error and found only > advises about closing the FileWriter, which I do. > I use lucene-1.5-rc1. There are several sneaky IO related issues in Lucene, that have now been fixed in Lucene 2.1, that could explain this. Is it possible to test Lucene 2.1 to see if this issue is still happening? Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org