-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Client, Replication
-
None
To get "sticky read your writes" behavior out of the internal replica set client, used by mongos and the shell, the internal client's code for replica set monitoring and server selection should accept as "primary" nodes reporting a larger electionId value than the most recently selected primary node.
Note that in 2.6 and 3.0, large clock skews (> 30 seconds) between the replica set member nodes may lead to clients that observe an election being unable to issue writes or primary reads. The solution would be to restart those clients.
- is depended on by
-
CXX-597 Use electionId to detect stale primaries.
- Closed
- is related to
-
SERVER-19978 Log electionid
- Backlog
-
SERVER-19979 Detect replset clock skew from electionids
- Backlog