I have taken snapshot for 6.4.1 elasticsearch cluster and downgraded elasticsearch to 5.6.5. After downgrade trying to restore the data from snapshot but got the below error.
[root@bolt45-ioc0 ~]# curl -XPOST "localhost:9200/_snapshot/version_6_backup/version_6.4.1_2018-11-23_01-44-51/_restore?wait_for_completion=true&pretty" -H 'Content-Type: application/json' -d'
{
"ignore_unavailable": true,
"partial": true
}
'
{
"error" : {
"root_cause" : [
{
"type" : "snapshot_restore_exception",
"reason" : "[version_6_backup:version_6.4.1_2018-11-23_01-44-51/rn_G0VheTamUJUdNEp_Y_Q] the snapshot was created with Elasticsearch version [6.4.1] which is higher than the version of this node [5.6.5]"
}
],
"type" : "snapshot_restore_exception",
"reason" : "[version_6_backup:version_6.4.1_2018-11-23_01-44-51/rn_G0VheTamUJUdNEp_Y_Q] the snapshot was created with Elasticsearch version [6.4.1] which is higher than the version of this node [5.6.5]"
},
"status" : 500
}
Snapshot details:
[root@bolt45-ioc0 ~]# curl -X GET "localhost:9200/_snapshot/version_6_backup/_all?pretty"
{
"snapshots" : [
{
"snapshot" : "version_6.4.1_2018-11-23_01-44-51",
"uuid" : "rn_G0VheTamUJUdNEp_Y_Q",
"version_id" : 6040199,
"version" : "6.4.1",
"indices" : [
"policybindings",
"policies",
"taskstatus",
"multiarray",
"userpreferences"
],
"state" : "SUCCESS",
"start_time" : "2018-11-23T09:44:52.993Z",
"start_time_in_millis" : 1542966292993,
"end_time" : "2018-11-23T09:44:56.642Z",
"end_time_in_millis" : 1542966296642,
"duration_in_millis" : 3649,
"failures" : ,
"shards" : {
"total" : 25,
"failed" : 0,
"successful" : 25
}
}
]
}