Data race condition
The value of the shared data will be determined by the interleaving of thread execution. Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition
/src/mongo/db/repl/primary_only_service_util.cpp:66: MISSING_LOCK 145051 Accessing "this->_completionPromise" without holding lock "mongo::DefaultPrimaryOnlyServiceInstance._mutex". Elsewhere, "mongo::DefaultPrimaryOnlyServiceInstance._completionPromise" is written to with "DefaultPrimaryOnlyServiceInstance._mutex" held 2 out of 2 times.