Hi,
I upgraded from Elasticsearch 2.1.1 to 5.1.1, then by mistake down to 2.1.1 again, and back up to 5.1.1.
Now, two of my indices are out of services, with reason below. What can I do to recover?
$ curl -XGET 'http://localhost:9200/_cluster/allocation/explain?pretty' -d'{ "index": "logstash-2016.12.14", "shard": 1, "primary": true}'
{
"shard" : {
"index" : "logstash-2016.12.14",
"index_uuid" : "78iFiCffRAKSBu7uf4Ekuw",
"id" : 1,
"primary" : true
},
"assigned" : false,
"shard_state_fetch_pending" : false,
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2016-12-14T13:37:20.867Z",
"delayed" : false,
"allocation_status" : "no_valid_shard_copy"
},
"allocation_delay_in_millis" : 60000,
"remaining_delay_in_millis" : 0,
"nodes" : {
"H4UxrgYbSzmcT2UE3WCJnw" : {
"node_name" : "H4UxrgY",
"node_attributes" : { },
"store" : {
"shard_copy" : "CORRUPT",
"store_exception" : "CorruptIndexException[failed engine (reason: [corrupt file (source: [start])]) (resource=preexisting_corruption)]; nested: IOException[failed engine (reason: [corrupt file (source: [start])])]; nested: IndexFormatTooNewException[Format version is not supported (resource MMapIndexInput(path=\"/usr/share/elasticsearch/data/elasticsearch/nodes/0/indices/78iFiCffRAKSBu7uf4Ekuw/1/index/_5xh.cfs\") [slice=_5xh.dim]): 3 (needs to be between 0 and 2)]; "
},
"final_decision" : "NO",
"final_explanation" : "the copy of the shard is corrupt",
"weight" : 36.25,
"decisions" : [ ]
}
}
}