URGENT: IndexShardRecoveryException


(Nemo) #1

What does this mean? I am seeing this after upgrading elastic from 1.7.1. to 2.2.0

Really appreciate any help

 [xx][[xx][4]] IndexShardRecoveryException[failed to fetch index version after copying it over]; nested: CorruptIndexException[Hit unexpected exception while reading segment infos (resource=commit(null))]; nested: IllegalArgumentException[Could not load codec 'Lucene54'.  Did you forget to add lucene-backward-codecs.jar?]; nested: IllegalArgumentException[An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene54' does not exist.  You need to add the corresponding JAR file supporting this SPI to your classpath.  The current classpath supports the following names: [Lucene40, Lucene41, Lucene42, Lucene45, Lucene46, Lucene49, Lucene410, Lucene50, Lucene53]];
    	at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:224)
    	at org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)
    	at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.lucene.index.CorruptIndexException: Hit unexpected exception while reading segment infos (resource=commit(null))
    	at org.elasticsearch.index.store.Store.readSegmentsInfo(Store.java:170)
    	at org.elasticsearch.index.store.Store.readLastCommittedSegmentsInfo(Store.java:148)
    	at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:199)
    	... 5 more
    Caused by: java.lang.IllegalArgumentException: Could not load codec 'Lucene54'.  Did you forget to add lucene-backward-codecs.jar?
    	at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:481)
    	at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:361)
    	at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:493)
    	at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:490)
    	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:731)
    	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:683)
    	at org.apache.lucene.index.SegmentInfos.readLatestCommit(SegmentInfos.java:490)
    	at org.elasticsearch.common.lucene.Lucene.readSegmentInfos(Lucene.java:98)
    	at org.elasticsearch.index.store.Store.readSegmentsInfo(Store.java:163)

Thanks,


(system) #2