Forbid allocate_empty_primary if Stale Copy Exists? #38763
Labels
:Distributed/Allocation
All issues relating to the decision making around placing a shard (both master logic & on the nodes)
team-discuss
Currently, it appears that if we have a stale copy of some unassigned shard on
node_a
, we can force allocate an empty primary onnode_b
and needless forgo the data that is still onnode_a
.I think just like we added a check for the existence of stale data on a node for
allocate_stale_primary
we should add a check for the non-existence of any stale data before allowingallocate_empty_primary
.There isn't really a scenario in which it would be advantageous to allow forgoing a stale shard-copy by allocating an empty primary on a node when one could at least allocate a stale primary on another node is there?
The text was updated successfully, but these errors were encountered: