Shards stuck in INITIALIZATION due to mismatch in State on targetnode

This looks quite unusual. Is this on the same Elasticsearch 5.6 cluster where you have modified the leader election and shard allocation logic?