-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Cluster Management
-
None
When connected to a replica set, the driver maintains a list of all the servers in the replica set, with information about each gleaned from the isMaster command. During a failover, depending on timing, the driver could end up with two primaries in this list. The driver should detect and correct this incorrect state by invalidating and attempting to reconnect with any existing primaries in the list whenever a new primary responds to isMaster.