org.elasticsearch.index.shard.IndexShardRecoveryException: failed recovery

GitHub | smokingwheels | 8 months 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

    Elasticsearch crash or something

    GitHub | 8 months ago | smokingwheels
    org.elasticsearch.index.shard.IndexShardRecoveryException: failed recovery

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Checkpoint file translog-177.ckp already exists but has corrupted content expected: Checkpoint{offset=1343213, numOps=1265, translogFileGeneration= 177} but got: Checkpoint{offset=1342383, numOps=1264, translogFileGeneration= 177}

      at org.elasticsearch.index.translog.Translog.recoverFromFiles()
    2. ElasticSearch
      StoreRecoveryService$1.run
      1. org.elasticsearch.index.translog.Translog.recoverFromFiles(Translog.java:339)[elasticsearch-2.3.2.jar:2.3.2]
      2. org.elasticsearch.index.translog.Translog.<init>(Translog.java:179)[elasticsearch-2.3.2.jar:2.3.2]
      3. org.elasticsearch.index.engine.InternalEngine.openTranslog(InternalEngine.java:208)[elasticsearch-2.3.2.jar:2.3.2]
      4. org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:151)[elasticsearch-2.3.2.jar:2.3.2]
      5. org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:25)[elasticsearch-2.3.2.jar:2.3.2]
      6. org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1515)[elasticsearch-2.3.2.jar:2.3.2]
      7. org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1499)[elasticsearch-2.3.2.jar:2.3.2]
      8. org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:972)[elasticsearch-2.3.2.jar:2.3.2]
      9. org.elasticsearch.index.shard.IndexShard.performTranslogRecovery(IndexShard.java:944)[elasticsearch-2.3.2.jar:2.3.2]
      10. org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:241)[elasticsearch-2.3.2.jar:2.3.2]
      11. org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)[elasticsearch-2.3.2.jar:2.3.2]
      12. org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)[elasticsearch-2.3.2.jar:2.3.2]
      12 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_91]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_91]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_91]
      3 frames