Hello,
I have an index which has unassigned shards. The explain shows some weird data.
curl -XGET 'localhost:19276/_cluster/allocation/explain?pretty' -H 'Content-Type: application/json' -d'
{
"index": "616bf200-b814-4a8b-816e-a4405061e3b8",
"shard": 1,
"primary": true
}
'
{
"index" : "616bf200-b814-4a8b-816e-a4405061e3b8",
"shard" : 1,
"primary" : true,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "ALLOCATION_FAILED",
"at" : "2017-04-05T21:01:02.381Z",
"failed_allocation_attempts" : 5,
"details" : "failed to create shard, failure IOException[failed to obtain in-memory shard lock]; nested: ShardLockObtainFailedException[[616bf200-b814-4a8b-816e-a4405061e3b8][1]: obtaining shard lock timed out after 5000ms]; ",
"last_allocation_status" : "no"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes that hold an in-sync shard copy",
"node_allocation_decisions" : [
{
"node_id" : "FV8SIN2sRf-gYrgba4DzuQ",
"node_name" : "api.realty.ci-v5-client-cluster-1",
"transport_address" : "10.0.0.5:19376",
"node_decision" : "no",
"store" : {
"found" : false
}
},
{
"node_id" : "gI0AijoaR36o-8_CWY028g",
"node_name" : "api.realty.ci-v5-client-cluster-3",
"transport_address" : "10.0.0.7:19376",
"node_decision" : "no",
"store" : {
"found" : false
}
},
{
"node_id" : "vqTVGjJxT2Wxnt4g0l9rmw",
"node_name" : "api.realty.ci-v5-client-cluster-2",
"transport_address" : "10.0.0.6:19376",
"node_decision" : "no",
"store" : {
"in_sync" : true,
"allocation_id" : "V8bd8J8kRZmlInMq_v2GCQ",
"store_exception" : {
"type" : "shard_lock_obtain_failed_exception",
"reason" : "[616bf200-b814-4a8b-816e-a4405061e3b8][1]: obtaining shard lock timed out after 5000ms",
"index_uuid" : "zqqOM8OXRuGFwLl6rxmYbw",
"shard" : "1",
"index" : "616bf200-b814-4a8b-816e-a4405061e3b8"
}
},
"deciders" : [
{
"decider" : "max_retry",
"decision" : "NO",
"explanation" : "shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2017-04-05T21:01:02.381Z], failed_attempts[5], delayed=false, details[failed to create shard, failure IOException[failed to obtain in-memory shard lock]; nested: ShardLockObtainFailedException[[616bf200-b814-4a8b-816e-a4405061e3b8][1]: obtaining shard lock timed out after 5000ms]; ], allocation_status[deciders_no]]]"
}
]
}
]
}
any idea how to fix this?
Regards,