-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
2
Context
When the balancer is selecting the chunks to move, it goes through all the collections randomly.
To prioritize the migrations from the draining shards, for every collection, we first check if the collection has chunks on a draining shard.
What is wrong
If a draining shard exists and that collection has chunks that can't be migrated from the draining shard (like jumbo chunks), that shard will be removed from the list of available shards to participate inĀ a migration during the current balancing round, which is not correct. That removal means that, during the current balancing round, the next collections won't have any chance to move their chunks from that shard.
Therefore, the draining of a shard has been slowed down due to the addition of this line.
- is caused by
-
SERVER-70973 Balancer should stop iterating collections when there are no more available shards
- Closed