-
Type:
Improvement
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
(copied to CRM)
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Under PV1 arbiters check if they can see a primary (src/mongo/db/repl/topology_coordinator_impl.cpp line 2580) but secondaries would vote in this scenaro.
Under certain rare conditions, this can cause flapping.
1. Netsplit
2. Few writes combined with replication lag keep secondaries from moving their optime ahead.
3. Secondary runs for election
4. Enough secondaries vote from new primary.
5. Election occurs
6. Old primary runs priority take over
We request this test be extended to all hosts.