Skip to content

Reroute and replica shards that return #16113

@markwalkom

Description

@markwalkom

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Coordination/AllocationAll issues relating to the decision making around placing a shard (both master logic & on the nodes)>docsGeneral docs changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions