Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28122C6C9 for ; Mon, 29 Jul 2013 09:04:15 +0000 (UTC) Received: (qmail 75213 invoked by uid 500); 29 Jul 2013 09:04:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75111 invoked by uid 500); 29 Jul 2013 09:04:00 -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 75101 invoked by uid 99); 29 Jul 2013 09:03:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 09:03:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prakash.chinnakannan@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 09:03:53 +0000 Received: by mail-la0-f49.google.com with SMTP id ev20so646229lab.8 for ; Mon, 29 Jul 2013 02:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=t18rgHQUOHgv8+V2HTtW+OAbww2qfLlL5zsrDuqxgxY=; b=KbWOE0uWegm5rjBUC/cEWTG9fnz2V1av6KiW9Aon9kWzDMl5ZjWUIlgFES4B32hF4U aQVraEKutCkJ2cMfn+cG5+2NzHCZNOsKoFpfWxec6N/ULsq3HZmBN5wIY3R/UW1T3WkW K6n5yevJ2ny9+hAqLVyh9VB/dDcbYrbwKePtmo3eP+eo2k9kcYj0icUYs+pOVFvrbV3a k5buwIymCAZ8SBVd8MW/Cx6CPssDUuXOHPHfAvE1tk5QOAPy8ihjv65qpxpaM0CiBnt4 CF3RmgtELx3JQDCRkAY6Ibrw+ffPa/WC08VUPmPti6xsd1Hz2p8Zq0Sq0zvzYg/jZviI Kh0Q== MIME-Version: 1.0 X-Received: by 10.112.157.137 with SMTP id wm9mr25274780lbb.14.1375088611907; Mon, 29 Jul 2013 02:03:31 -0700 (PDT) Received: by 10.112.26.9 with HTTP; Mon, 29 Jul 2013 02:03:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Jul 2013 14:33:31 +0530 Message-ID: Subject: Re: ERROR: could not read any segments file in directory From: Prakash Chinnakannan To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c296543f5c1d04e2a2c4a3 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c296543f5c1d04e2a2c4a3 Content-Type: text/plain; charset=ISO-8859-1 Thanks Mike, we'd restored the index content from the backup. I will also suggest to move the index to local storage. > Do you commit frequently and has this index been running for a very, very long time? Yes, index files would be there for more than 3 yrs and frequent add/update and delete operations are going on over that. >What is that INDEX_REQUEST file doing in the index? Not sure how it got created.. will check that Mike. Thanks, Prakash On Sat, Jul 27, 2013 at 4:09 PM, Michael McCandless < lucene@mikemccandless.com> wrote: > OK, you have only one segments file, and it sounds like it was > corrupted by the crash of your SAN. I don't think there's much you > can do but re-index. > > Maybe move your index to local storage: it sounds like this SAN is not > to be trusted. > > Separately, your segment numbers are truly immense. Do you commit > frequently and has this index been running for a very, very long time? > > What is that INDEX_REQUEST file doing in the index? > > Mike McCandless > > http://blog.mikemccandless.com > > > On Fri, Jul 26, 2013 at 1:57 PM, Prakash Chinnakannan > wrote: > > Thanks for your time Mike, > > > > Yes the commit has been made successfully before crashing. > > > > Here is the output of ls -lrt on searchIndex/ directory > > > >>> > > > > searchIndex#] ls -lrt > > total 50624356 > > -rw-r--r-- 1 root root 32991 Jul 26 06:42 _18vyk7.fnm > > -rw-r--r-- 1 root root 39608652 Jul 26 06:42 _18vyk7.fdx > > -rw-r--r-- 1 root root 2585873905 Jul 26 06:42 _18vyk7.fdt > > -rw-r--r-- 1 root root 3746137075 Jul 26 07:04 _18vyk7.tis > > -rw-r--r-- 1 root root 48247452 Jul 26 07:04 _18vyk7.tii > > -rw-r--r-- 1 root root 31312798534 Jul 26 07:04 _18vyk7.prx > > -rw-r--r-- 1 root root 7066658159 Jul 26 07:04 _18vyk7.frq > > -rw-r--r-- 1 root root 6976073133 Jul 26 07:05 _18vyk7.nrm > > -rw-r--r-- 1 root root 1551 Jul 26 07:13 _18vyk7_1f.del > > -rw-r--r-- 1 root root 138 Jul 26 07:13 INDEX_REQUEST > > -rw-r--r-- 1 root root 10134260 Jul 26 07:13 _18wlug.cfs > > -rw-r--r-- 1 root root 20 Jul 26 07:13 segments.gen > > -rw-r--r-- 1 root root 5141 Jul 26 07:13 segments_174k7h > > -rw-r--r-- 1 root root 563 Jul 26 07:13 _18wmdw.tis > > -rw-r--r-- 1 root root 35 Jul 26 07:13 _18wmdw.tii > > -rw-r--r-- 1 root root 32 Jul 26 07:13 _18wmdw.prx > > -rw-r--r-- 1 root root 32 Jul 26 07:13 _18wmdw.frq > > -rw-r--r-- 1 root root 12 Jul 26 07:13 _18wmdw.fdx > > -rw-r--r-- 1 root root 266 Jul 26 07:13 _18wmdw.fdt > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdv.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdt.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmds.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdr.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdq.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdp.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdo.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdn.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdm.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdl.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdk.cfs > > -rw-r--r-- 1 root root 1149834 Jul 26 07:13 _18wmdj.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdi.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdh.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdg.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdf.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmde.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdd.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdc.cfs > > -rw-r--r-- 1 root root 35454 Jul 26 07:13 _18wmdb.cfs > > -rw-r--r-- 1 root root 51334 Jul 26 07:13 _18wmda.cfs > > -rw-r--r-- 1 root root 1117999 Jul 26 07:13 _18wmcz.cfs > > << > > > > Below is the another exception trace, which happens when we try to > > initialize the IndexWriter in our application. > > > > > >>> > > ERROR 13748 [SearchSe] (): [2013-07-26 12:14:10,911] The Lucene > > index at location [searchIndex] is corrupt. Please wipe away the > > entire directory or replace with a back up. It's not reasonable to > > continue. > > org.apache.lucene.index.CorruptIndexException: Unknown format version: > > -318130790 > > at > org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272) > > at > org.apache.lucene.index.IndexFileDeleter.(IndexFileDeleter.java:168) > > at > org.apache.lucene.index.IndexWriter.(IndexWriter.java:1172) > > << > > > > Thanks, > > Prakash > > > > > > > > On Fri, Jul 26, 2013 at 8:50 PM, Michael McCandless < > > lucene@mikemccandless.com> wrote: > > > >> Likely there's nothing easy you can do to recover the index. > >> > >> If the crash was merely an "outage", and the IO system did not flip > >> bits on files that were committed, then the index should have been > >> intact. > >> > >> Can you post the ls -l of the index directory? > >> > >> Had you successfully committed to this index before crashing? > >> > >> Mike McCandless > >> > >> http://blog.mikemccandless.com > >> > >> > >> On Fri, Jul 26, 2013 at 10:59 AM, Prakash Chinnakannan > >> wrote: > >> > Hi, > >> > > >> > Today we'd the SAN outage and it looks the lucene index directory got > >> > corrupted. We tried to fix it by using CheckIndex and below is the > >> > exception trace. > >> > > >> > Do we've any other possible ways to recover the index contents? > >> > > >> > ~#] java -cp lucene-3.2.0.jar org. > >> > apache.lucene.index.CheckIndex searchIndex/ -fix > >> > > >> > NOTE: testing will be more thorough if you run java with > >> > '-ea:org.apache.lucene...', so assertions are enabled > >> > > >> > Opening index @ searchIndex/ > >> > > >> > ERROR: could not read any segments file in directory > >> > org.apache.lucene.index.CorruptIndexException: Unknown format version: > >> > -318130790 > >> > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272) > >> > at > org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:358) > >> > at > >> > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:753) > >> > at > >> > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:592) > >> > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:354) > >> > at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:319) > >> > at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:940) > >> > > >> > Thanks for your help. > >> > > >> > -- > >> > Prakash C > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > >> For additional commands, e-mail: java-user-help@lucene.apache.org > >> > >> > > > > > > -- > > Prakash C > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- Prakash C --001a11c296543f5c1d04e2a2c4a3--