-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Service Arch
-
Fully Compatible
-
Security 2024-05-27
-
200
When sorting the list of MONGO_INITIALIZERS, we generate a random seed to shuffle the initializers within each dependency group in order to catch incorrect initialization order (https://github.com/10gen/mongo/blob/83fc0eae8051f624adb41a786fd8ad19c3371d54/src/mongo/base/dependency_graph.cpp#L159).
However, if we do catch a bug through this shuffling, it will be very difficult to reproduce without knowing the random seed involved in the shuffle. We print the entire list of sorted dependencies at debug level 2, although it is sometimes very difficult to repro these types of bugs and reproing with the correct debug level set is difficult.
We should print this seed so that we can easily reproduce those bugs if they do come up.