[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-user
Subject:    Corrupted index
From:       Bill Tschumy <bill () otherwise ! com>
Date:       2005-04-08 17:26:49
Message-ID: 714bb96f024157c10aec520fc937db18 () otherwise ! com
[Download RAW message or body]

I had a customer report a corrupted Lucene index.  He had copied the  
index to backup storage, reformatted his drive, and then restored the  
data.  After that Lucene has trouble opening the index.

Here is the backtrace:
java.io.FileNotFoundException: /Users/bill/Desktop/IndexData/_v.fnm (No  
such file or directory)
         at java.io.RandomAccessFile.open(Native Method)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:204)
         at  
org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java 
:376)
         at  
org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
         at  
org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
         at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:53)
         at  
org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java: 
109)
         at  
org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:94)
         at  
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:122)
         at org.apache.lucene.store.Lock$With.run(Lock.java:109)
         at  
org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
         at  
org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
         at  
org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:43)
         at  
com.otherwise.parsnips.MySearcher.getSearcher(MySearcher.java:94)
         at  
com.otherwise.parsnips.IndexUpdater.checkIndexVersion(IndexUpdater.java: 
35)
         at com.otherwise.parsnips.Parsnips.initIndex(Parsnips.java:1101)
         at  
com.otherwise.parsnips.PreferencesDialog.checkIndexLoacation(Preferences 
Dialog.java:212)
         at  
com.otherwise.parsnips.PreferencesDialog.actionPerformed(PreferencesDial 
og.java:95)
         at  
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 
1819)
         at  
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractB 
utton.java:1872)
         at  
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.ja 
va:420)
         at  
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
         at  
javax.swing.plaf.basic.BasicRootPaneUI$DefaultAction.actionPerformed(Bas 
icRootPaneUI.java

Here is what is in the index directory:

[pm1:~/Desktop/IndexData] ls -la
total 336
drwxr-xr-x   6 bill  admin    204  8 Apr 08:04 ./
drwxr-xr-x  25 bill  admin    850  8 Apr 10:10 ../
-rwxr-xr-x   1 bill  admin  78695  7 Apr 10:02 _6r.cfs*
-rwxr-xr-x   1 bill  admin  78371  7 Apr 10:03 _6t.cfs*
-rwxr-xr-x   1 bill  admin     20  7 Apr 10:03 deletable*
-rwxr-xr-x   1 bill  admin     83  7 Apr 10:03 segments*

The only thought I had was that he copied the data while the app was  
still running and perhaps it was in an inconsistent state.  Is this  
possible?  Any other way to track down what went wrong?

-- 
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic