Use setVersion and electionId to detect stale primaries

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.1, 2.14.1
    • Affects Version/s: 2.14.0, 3.2.0
    • Component/s: Cluster Management
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: