Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
BalancedShardsAllocator prematurely modifies `unassigned` shards list #3610
BalancedShardsAllocator modifies the unassigned shards list during initialization which is used by AllocationDeciders. Yet, premature modification can cause unintended throtteling of primary allocation which causes cluster to go in a red state until recovery / relocation has caught up to not throttle the allocation anymore. This is a very rare scenario that will only have a prominent effect on full cluster restarts or similar heavy weight operations.