Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 50676 invoked from network); 1 Sep 2006 11:38:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 11:38:39 -0000 Received: (qmail 8668 invoked by uid 500); 1 Sep 2006 11:38:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 8642 invoked by uid 500); 1 Sep 2006 11:38:32 -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 8625 invoked by uid 99); 1 Sep 2006 11:38:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 04:38:32 -0700 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 [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 04:38:31 -0700 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 4468DDA127F for ; Fri, 1 Sep 2006 07:38:10 -0400 (EDT) Received: from heartbeat1.internal ([10.202.2.160]) by frontend3.internal (MEProxy); Fri, 01 Sep 2006 07:38:10 -0400 X-Sasl-enc: Z7mVnvT3RSaUwwlPcIImjOxKa32GMrwSYzKpFIzruRbH 1157110690 Received: from [10.17.4.91] (pool-72-70-33-153.bstnma.fios.verizon.net [72.70.33.153]) by mail.messagingengine.com (Postfix) with ESMTP id 7BAA01118F for ; Fri, 1 Sep 2006 07:38:10 -0400 (EDT) Message-ID: <44F81B92.3090909@mikemccandless.com> Date: Fri, 01 Sep 2006 07:37:54 -0400 From: Michael McCandless User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: read past EOF References: <00f701c6cc16$79f16d90$0b0310ac@bhavin> <44F56A7E.5060503@mikemccandless.com> <001901c6cc33$c75d3290$0b0310ac@bhavin> <44F64A08.1080209@mikemccandless.com> <001401c6ccbf$893db3e0$0b0310ac@bhavin> In-Reply-To: <001401c6ccbf$893db3e0$0b0310ac@bhavin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Yes I am sure only one writer at a time accessing index. > > no i am not getting any other exception. > > and there is no problem of disk space also. > > right now i have backcopy of indexes so whenever one index got corrupted > i m replacing with backup one and starting the indexer again from that > duration. > > Here is the script which i am using to move index after its built. > > - rm -rf backupindex/* > - mv index backupindex; > - mv newindex index; > - mkdir newindex > - cp -dpR index/* newindex/ > - touch index.done > - echo "done"; > > where "newindex" is the index which I am using for indexing...."index" > which i am using for search purpose....and "backupindex" contains > previous index. It sounds like you're working with the index correctly, so I don't have any other ideas on why you're getting CFS files that are truncated. I would wory about the "cp" step filling up disk, but if you're nowhere near filling up disk that's not the root cause here. Does this happen intermittantly? Or it happened once and now it's gone? Or is it easy to reproduce? > Is there any way through which I can check if index is corrupt or > not....right now because of this exception (read past EOF ) i made few > changes in my code to check for corrupt index. But i am checking for > corrupt index through optimizing...If in optimization of index i m > getting IOException I am considering that index got corrupted or there > is permission issue.. That's a great question. I don't know of existing tools for doing this (anyone else?). Running optimize is likely a good test, so long as there's more than 1 segment before optimize (so that it actually does something). Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org