Shard Allocation Race Condition #34878
Labels
:Distributed Coordination/Allocation
All issues relating to the decision making around placing a shard (both master logic & on the nodes)
feedback_needed
6.3.2 :
Plugins installed: []
JVM version (
java -version
): 1.8.72OS version (
uname -a
if on a Unix-like system): Ubuntu 14.04Description of the problem including expected versus actual behavior:
New Index Gets allocated into a yellow state vs. allocating to shards each available node when using a mixture of rack_awareness and shard_allocation_per_node = 1
Steps to reproduce:
So basically you can get into a condition where even though you still have 2 nodes without a shard it can't allocate to either of them because then the primary and relica would be in the same rack. To fix this you have to move the free up a node in a different rack by moving it's primary or replica to one of the unused nodes, then assign the original replica that couldn't be assigned to that new node (moving 2 shards at once).
The text was updated successfully, but these errors were encountered: