...
BugZero found this defect 2853 days ago.
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
xgen-internal-githook commented on Fri, 21 Apr 2017 21:40:38 +0000: Author: {u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'} Message: SERVER-28493 Wait for secondary's dry run election to finish before healing network in no_flapping_during_network_partition.js Branch: master https://github.com/mongodb/mongo/commit/cdf7d99b56b24780b9586d54d8c5c6995b126c1e