-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Distributed Coordination/AllocationAll issues relating to the decision making around placing a shard (both master logic & on the nodes)All issues relating to the decision making around placing a shard (both master logic & on the nodes)>bughelp wantedadoptmeadoptmehigh hanging fruit
Description
Using shard awareness and allocation filtering together may lead to unassigned shard.
To reproduce:
- 3 nodes cluster (2 with
node.flavor: type1, the other one withnode.flavor: type2) - shard are required to have 2 copies
- use
cluster.routing.allocation.awareness.attributes: flavor - use
routing.allocation.require: type1on index template
On index creation, shard primary will be set on a type1 node, its copy will stay unassigned.
The full description of the scenario leading to this issue is described on #8104 and https://groups.google.com/forum/#!topic/elasticsearch/wbVIsDzYLDM
Investigation in the code show that
- shard allocation on
type2node is ruled out because of allocation filter - shard allocation on
type1nodes are ruled out because of rack awareness
Those rules should cooperate and I expect the shard replica to go to the second type1 node.
prog8, otisg and msimerson
Metadata
Metadata
Assignees
Labels
:Distributed Coordination/AllocationAll issues relating to the decision making around placing a shard (both master logic & on the nodes)All issues relating to the decision making around placing a shard (both master logic & on the nodes)>bughelp wantedadoptmeadoptmehigh hanging fruit