Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2069

Use setVersion and electionId to detect stale primaries

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.1, 2.14.1
    • Affects Version/s: 2.14.0, 3.2.0
    • Component/s: Cluster Management
    • Labels:
      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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: