lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From superruiye <superru...@gmail.com>
Subject "read past EOF" when merge
Date Wed, 31 Oct 2012 03:27:46 GMT
 The exception "read past EOF" Bothering me a long time, trace at below.


Exception in thread "Lucene Merge Thread #7"
org.apache.lucene.index.MergePolicy$MergeException: java.io.IOException:
read past EOF
        at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
        at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)
Caused by: java.io.IOException: read past EOF
        at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:207)
        at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:39)
        at org.apache.lucene.store.DataInput.readVInt(DataInput.java:105)
        at
org.apache.lucene.store.BufferedIndexInput.readVInt(BufferedIndexInput.java:181)
        at
org.apache.lucene.index.SegmentTermPositions.readDeltaPosition(SegmentTermPositions.java:76)
        at
org.apache.lucene.index.SegmentTermPositions.nextPosition(SegmentTermPositions.java:72)
        at
org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:594)
        at
org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:538)
        at
org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:470)
        at
org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:109)
        at
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4273)
        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3917)
        at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:388)
        at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:456)


in this time,it come in merge time,but it index successfully and I can
search the new index info.I use lucene 3.4.0,and some config in
IndexWriterConfig is:
indexWriterConfig.setMaxBufferedDocs(2000);
indexWriterConfig.setRAMBufferSizeMB(64);

I used a PostponeCommitDeletionPolicy I rewrite ,and it delete the commit
after commits.get(i).getTimestamp 5 minutes.




--
View this message in context: http://lucene.472066.n3.nabble.com/read-past-EOF-when-merge-tp4017179.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
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