Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 94751 invoked from network); 24 Apr 2006 20:25:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 20:25:18 -0000 Received: (qmail 29858 invoked by uid 500); 24 Apr 2006 20:25:16 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 29827 invoked by uid 500); 24 Apr 2006 20:25:15 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 29816 invoked by uid 99); 24 Apr 2006 20:25:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 13:25:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 13:25:15 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C0A87142A6 for ; Mon, 24 Apr 2006 20:24:06 +0000 (GMT) Message-ID: <6610792.1145910246023.JavaMail.jira@brutus> Date: Mon, 24 Apr 2006 20:24:06 +0000 (GMT+00:00) From: "Doug Cutting (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-555) Index Corruption In-Reply-To: <1163475.1145861407628.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 [ http://issues.apache.org/jira/browse/LUCENE-555?page=comments#action_12376095 ] Doug Cutting commented on LUCENE-555: ------------------------------------- Dan, Lucene has never had a recovery mechanism other than rebuilding the index. This is usually practical, since Lucene is not meant to be used as a primary repository for data, but rather as an index, to help folks find things they already have. So perhaps we should recategorize this as a feature request, rather than a bug, no? Please note that it might be difficult to add, since Lucene, in order to keep indexes relatively small, keeps no journal of transactions. Finally, Lucene is not a database. It is a full-text indexing system. The requirements are different. > Index Corruption > ---------------- > > Key: LUCENE-555 > URL: http://issues.apache.org/jira/browse/LUCENE-555 > Project: Lucene - Java > Type: Bug > Components: Index > Versions: 1.9 > Environment: Linux FC4, Java 1.4.9 > Reporter: dan > Priority: Critical > > Index Corruption > >>>>>>>>> output > java.io.FileNotFoundException: ../_aki.fnm (No such file or directory) > at java.io.RandomAccessFile.open(Native Method) > at java.io.RandomAccessFile.(RandomAccessFile.java:204) > at org.apache.lucene.store.FSIndexInput$Descriptor.(FSDirectory.java:425) > at org.apache.lucene.store.FSIndexInput.(FSDirectory.java:434) > at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:324) > at org.apache.lucene.index.FieldInfos.(FieldInfos.java:56) > at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:144) > at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:129) > at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:110) > at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:674) > at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:658) > at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:517) > >>>>>>>>> input > - I open an index, I read, I write, I optimize, and eventually the above happens. The index is unusable. > - This has happened to me somewhere between 20 and 30 times now - on indexes of different shapes and sizes. > - I don't know the reason. But, the following requirement applies regardless. > >>>>>>>>> requirement > - Like all modern database programs, there has to be a way to repair an index. Period. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org