lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Lisheng" <Lisheng.Zh...@BroadVision.com>
Subject data corruption in lucene index 2.3.2
Date Fri, 28 Oct 2011 20:57:59 GMT
 
We are using lucene 2.3.2 (yes we should upgrade) and recently we had Exception when opening
index:
 
###
java.io.IOException: read past EOF<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)
        at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
        at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:209)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:173)
        at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:48)
###
 
Looking at the data I found segment files having zero bytes:
 
###
-rwxrwxrwx 1 root root        0 2011-10-29 01:35 segments_8tbb
-rwxrwxrwx 1 root root        0 2011-10-29 01:35 segments.gen
###
 
How could that happen (I did not find any multiple indexing on this data folder)?
 
Thanks very much for helps, Lisheng 
 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message