lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Swanhart <greenl...@gmail.com>
Subject corrupted index
Date Sun, 05 Dec 2004 05:01:15 GMT
Somehow today one of my indexes became corrupted.  

I get the following IO exception when trying to open the index:
Exception in thread "main" java.io.IOException: read past EOF
        at org.en.lucene.store.InputStream.refill(InputStream.java:154)
        at org.en.lucene.store.InputStream.readByte(InputStream.java:43)
        at org.en.lucene.store.InputStream.readVInt(InputStream.java:83)
        at org.en.lucene.index.FieldInfos.read(FieldInfos.java:195)
        at org.en.lucene.index.FieldInfos.<init>(FieldInfos.java:55)
        at org.en.lucene.index.SegmentReader.initialize(SegmentReader.java:109)
        at org.en.lucene.index.SegmentReader.<init>(SegmentReader.java:94)
        at org.en.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:480)
        at org.en.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:458)
        at org.en.lucene.index.IndexWriter.addDocument(IndexWriter.java:310)
        at org.en.lucene.index.IndexWriter.addDocument(IndexWriter.java:294)
        at org.en.global.indexer2.Minnow.main(Minnow.java:142)

Any ideas on what could cause this type of corruption, and what I can
do to avoid it in the future.  Also, any ideas on repairing the index
if this happens?  I removed the index directory and marked the rows to
be reindexed from the database, but the data is unavailable to my
users while the index rebuilds.

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


Mime
View raw message