You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2015/12/18 21:29:46 UTC

[jira] [Commented] (LUCENE-6934) java.io.EOFException: read past EOF: MMapIndexInput [slice=_342.fdx]

    [ https://issues.apache.org/jira/browse/LUCENE-6934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064712#comment-15064712 ] 

Michael McCandless commented on LUCENE-6934:
--------------------------------------------

Hi, can you instead send an email to the Lucene user's list (java-user@lucene.apache.org)?  This looks like index corruption, and there could be various causes (maybe including bugs that have been fixed since 4.2, which is quite old).

> java.io.EOFException: read past EOF: MMapIndexInput [slice=_342.fdx]
> --------------------------------------------------------------------
>
>                 Key: LUCENE-6934
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6934
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.2
>            Reporter: Tejas Jethva
>
> We are getting following exception when we are trying to commit the changes done on the index.
> java.io.EOFException: read past EOF: MMapIndexInput(path="<cache-directory>/_342.cfs") [slice=_342.fdx]
> 	at org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:78)
> 	at org.apache.lucene.store.DataInput.readInt(DataInput.java:84)
> 	at org.apache.lucene.store.ByteBufferIndexInput.readInt(ByteBufferIndexInput.java:129)
> 	at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:126)
> 	at org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.<init>(CompressingStoredFieldsReader.java:102)
> 	at org.apache.lucene.codecs.compressing.CompressingStoredFieldsFormat.fieldsReader(CompressingStoredFieldsFormat.java:113)
> 	at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:147)
> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:56)
> 	at org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
> 	at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:216)
> 	at org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2961)
> 	at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:2952)
> 	at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2692)
> 	at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2827)
> 	at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2807)
> This is the exception when we tried to close after commit failed:
> java.io.FileNotFoundException: <cache-directory>/_342.cfs (No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
> 	at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:193)
> 	at org.apache.lucene.store.MMapDirectory.createSlicer(MMapDirectory.java:203)
> 	at org.apache.lucene.store.CompoundFileDirectory.<init>(CompoundFileDirectory.java:102)
> 	at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:116)
> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:56)
> 	at org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
> 	at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:216)
> 	at org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2961)
> 	at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:2952)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2925)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2894)
> 	at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:928)
> 	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:883)
> 	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:845)
> Could you please point us what might be possible cause of this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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