lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: data corruption in lucene index 2.3.2
Date Sat, 29 Oct 2011 10:39:16 GMT
Was there any catastrophic event against this index?

EG, power loss on the machine, or OS crash, while the app had and
IndexWriter open?

Mike McCandless

http://blog.mikemccandless.com

On Fri, Oct 28, 2011 at 4:57 PM, Zhang, Lisheng
<Lisheng.Zhang@broadvision.com> wrote:
>
> 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
>
>

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


Mime
View raw message