I was reading about relocation of shards in elastic search and allocation of unassigned shards. Came upon this issue - https://github.com/elastic/elasticsearch/issues/12273.
Here it is mentioned that since unassigned shards are present in the cluster relocation is not possible.. I couldn't comprehend the reason behind it.
I tried reading about procedures to reallocate shards when unassigned shards are present. There are some deadlock issues when we put hard limit on the total number shards on a node, but I feel they can be addressed if relocation happens.
GET _cluster/allocation/explain. Can you update your question with the full result you get from that call?POST _cluster/reroute?retry_failed=trueand the unassigned shards will start being allocated