org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=16792064 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/data/data/nodes/0/indices/MKbBB-qMTpmU3V14q-pLnw/0/index/_6x.fdx")))

GitHub | iJoyCode | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Got corrupt indices on kubernetes

    GitHub | 1 month ago | iJoyCode
    org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=16792064 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/data/data/nodes/0/indices/MKbBB-qMTpmU3V14q-pLnw/0/index/_6x.fdx")))
  2. 0

    Es 5.1.1: unassigned (p/r) shards and corrupt indices

    GitHub | 2 months ago | itkovian
    org.apache.lucene.index.CorruptIndexException: compound sub-files must have a valid codec header and footer: file is too small (0 bytes) (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/var/lib/elasticsearch/tangela/nodes/0/indices/zXNSWURiTkmOVEGCCmXTvQ/4/index/_24_Lucene54_0.dvm")))

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.lucene.index.CorruptIndexException

      codec footer mismatch (file truncated?): actual footer=16792064 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/data/data/nodes/0/indices/MKbBB-qMTpmU3V14q-pLnw/0/index/_6x.fdx")))

      at org.apache.lucene.codecs.CodecUtil.validateFooter()
    2. Lucene
      CodecUtil.checkFooter
      1. org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:499)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      2. org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:411)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      2 frames
    3. org.apache.lucene
      Lucene50CompoundFormat.write
      1. org.apache.lucene.codecs.lucene50.Lucene50CompoundFormat.write(Lucene50CompoundFormat.java:103)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      1 frame
    4. Lucene
      ReferenceManager.maybeRefreshBlocking
      1. org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4893)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      2. org.apache.lucene.index.DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.java:516)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      3. org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:480)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      4. org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:539)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      5. org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:653)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      6. org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:438)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      7. org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:291)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      8. org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:266)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      9. org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:256)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      10. org.apache.lucene.index.FilterDirectoryReader.doOpenIfChanged(FilterDirectoryReader.java:104)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      11. org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:140)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      12. org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:156)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      13. org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      14. org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:176)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      15. org.apache.lucene.search.ReferenceManager.maybeRefreshBlocking(ReferenceManager.java:253)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]
      15 frames
    5. ElasticSearch
      ThreadContext$ContextPreservingRunnable.run
      1. org.elasticsearch.index.engine.InternalEngine.refresh(InternalEngine.java:646)[elasticsearch-5.1.1.jar:5.1.1]
      2. org.elasticsearch.index.shard.IndexShard.refresh(IndexShard.java:629)[elasticsearch-5.1.1.jar:5.1.1]
      3. org.elasticsearch.index.IndexService.maybeRefreshEngine(IndexService.java:689)[elasticsearch-5.1.1.jar:5.1.1]
      4. org.elasticsearch.index.IndexService.access$400(IndexService.java:93)[elasticsearch-5.1.1.jar:5.1.1]
      5. org.elasticsearch.index.IndexService$AsyncRefreshTask.runInternal(IndexService.java:831)[elasticsearch-5.1.1.jar:5.1.1]
      6. org.elasticsearch.index.IndexService$BaseAsyncTask.run(IndexService.java:742)[elasticsearch-5.1.1.jar:5.1.1]
      7. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:458)[elasticsearch-5.1.1.jar:5.1.1]
      7 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_111]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_111]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]
      3 frames