Describe the bug
I have recently enabled segment replication on an OpenSearch 2.5.0 cluster and ran into a stuck initializing shard somehow. The only thing different on this cluster is 2.5.0 upgrade + enabling segment replication. I am leaning toward being related to the segment replication since it is experimental.
To Reproduce
I have not been able to reproduce, not sure how it even happened in first place.
Expected behavior
Shards initialize and finish
Additional context
I didn't see anything suspicious in the logs and issue was easy to resolve using the shard reroute api.