Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-279

Use setVersion and electionId to detect stale primaries

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      This is a change to the SDAM 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:

      NOTE: Make sure to update the test runner to assert on electionId and setVersion equality

            Assignee:
            rathi.gnanasekaran Rathi Gnanasekaran
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: