-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
The warning at the bottom of [this page](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html] states;
The allow_primary parameter will force a new empty primary shard to be allocated without any data. If a node which has a copy of the original primary shard (including data) rejoins the cluster later on, that data will be deleted: the old shard copy will be replaced by the new live shard copy.
If there are no applicable replicas to promote and a user force allocates the primary, we will then create a new replica containing the same amount of data as this new primary (ie probably empty).
But if we had a copy of the replica on another unavailable node - eg if we had multiple nodes drop out that happened to have the primary and replica of the same shard - I presume we also ignore the old replica? Should we update this warning to include this?