Replica shards stuck in Initialization phase

That stackoverflow post is totally wrong, KB will not stop any sort of shard action from happening.

And the solution is a really bad idea. Really bad.
Deleting the segments gen files basically stops Lucene/ES from keeping track of deleted files.