-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
0
To avoid the secondary potentially winning an election and bumping its term unexpectedly, we need to make sure it waits until it has completed a dry run election after checking for arbiter vote rejection. A checkLog.contains for a message like "not running for primary" may be suitable, as that is the main message signalling an unsuccessful dry run election in https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp