[CSHARP-1526] Use setVersion and electionId to detect stale primaries Created: 07/Jan/16  Updated: 20/Jan/16  Resolved: 14/Jan/16

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 2.2.2

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-279 Use setVersion and electionId to dete... Closed

 Description   

This is a change to the Server Discovery and Monitoring Specification specification.

Because electionIds from different protocol versions aren't comparable,
drivers must compare (setVersion, electionId) tuples to detect stale
primaries.

You can see the details of the spec change in these commits:

SDAM tests are also updated:



 Comments   
Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1526: Rename PrimaryVersion to ElectionInfo.
Branch: v2.2.x
https://github.com/mongodb/mongo-csharp-driver/commit/3d1bc8dc219d5616884dde4718574ba0f5bbed30

Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1526: use setVersion and electionIds for mitigating race conditions between protocols.
Branch: v2.2.x
https://github.com/mongodb/mongo-csharp-driver/commit/7fbf73253f9f2759084323b84830590048ae7ed3

Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1526: Rename PrimaryVersion to ElectionInfo.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/966bf7cc43abdfa70f1734f8e0e74d0538d8d065

Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1526: use setVersion and electionIds for mitigating race conditions between protocols.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/906e096c779719604acf63ba90a2d400a361e595

Generated at Wed Feb 07 21:39:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.