-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.3.2
-
Component/s: Internal Client, Testing Infrastructure
-
None
-
Fully Compatible
We could add more test in this description as we go along, but here's some things we should test:
- Test inconsistent replies for isMaster/replSetGetStatus from different nodes (simulating a condition where the config doc was not yet fully propagated to the other secondaries).
- Multiple nodes claim to be master. We use a last-wins policy.
- Nodes disagree about who is in set. We only trust replies from the master when adjusting set membership (unless no master found during scan). Make sure the final nodes list, the seeds list, and the nodes contacted during the scan are correct.
- Combination of the last two: Multiple nodes claim to be master and disagree about set membership.
- Make sure SetState::getMatchingHost returns hosts even if a scan is ongoing. This is what allows early exit from Refresher::refreshUntilMatches and allows RSM::getHost() to avoid going to the network if we know of a suitable node.
- Make sure nothing breaks if someone calls the out-of-band RSM::failedHost notifier during a scan.
- Test parsing of isMaster replies. This can directly test RSM::IsMasterReply::parse().
- Consider cribbing tests from other drivers if they make sense.
- depends on
-
SERVER-12284 ReplicaSetMonitor is broken
- Closed