-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
Sharding EMEA 2022-10-31, Sharding EMEA 2022-11-14
-
12
As part of introducing the defragmentation policy, we introduced a secondary thread in the balancer. This thread processes the non-migration requests from the defragmentation policy.
This thread randomizes which collections it works on using std::uniform_int_distribution. The std::uniform_int_distribution uses a random device to create the distribution. Currently, we are using the same random device on both the main balancer thread and on the new secondary thread.
We instead need to create a separate random device for each thread of the balancer.
- is related to
-
SERVER-74202 Update balancer to use client local Prng for thread-safe shuffling
- Closed