[JAVA-2069] Use setVersion and electionId to detect stale primaries Created: 22/Dec/15  Updated: 16/Feb/18  Resolved: 13/Jan/16

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.14.0, 3.2.0
Fix Version/s: 3.2.1, 2.14.1

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
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
Related

 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 [ 16/Feb/18 ]

Author:

{'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin', 'username': 'jyemin'}

Message: JAVA-2069: Use both setVersion and electionId to detect a stale primary
Branch: 2.14.x
https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d

Comment by Jeffrey Yemin [ 13/Jan/16 ]

Closing for 3.2.1 release.

Comment by Githook User [ 13/Jan/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2069: Use both setVersion and electionId to detect a stale primary
Branch: 2.14.x
https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d

Comment by Githook User [ 13/Jan/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2069: Use both setVersion and electionId to detect a stale primary
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/9011ab3cf0199378bdb764d0742ea74862e622ad

Comment by Githook User [ 05/Jan/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2069: Added additional tests from the specification
Branch: 3.2.x
https://github.com/mongodb/mongo-java-driver/commit/82a5aa99a05d748c6b9316d3702ff9729e727841

Comment by Jeffrey Yemin [ 05/Jan/16 ]

Note: referenced the wrong ticket in the commit message.

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2068: Added additional tests from the specification
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/4f693f5ba3157662111d9dea988c765423c5b77d

Comment by Githook User [ 05/Jan/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2069: Use both setVersion and electionId to detect a stale primary
Branch: 3.2.x
https://github.com/mongodb/mongo-java-driver/commit/c59e798d83256b1f57cae68c0e80672e422d3ef3

Comment by Githook User [ 05/Jan/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2069: Use both setVersion and electionId to detect a stale primary
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a3e1330d851e6a559b77648d04154c650b4685ac

Generated at Thu Feb 08 08:56:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.