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

Use setVersion and electionId to detect stale primaries

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-1056 Done 1.3.1
      PYTHON-1036 Done 3.2.1
      JAVA-2069 Done 3.2.1, 2.14.1
      PERL-604 Done 1.2.2
      RUBY-1077 Done 2.2.2
      NODE-634 Done 2.1.5
      CSHARP-1526 Done 2.2.2
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-1056 Done 1.3.1 PYTHON-1036 Done 3.2.1 JAVA-2069 Done 3.2.1, 2.14.1 PERL-604 Done 1.2.2 RUBY-1077 Done 2.2.2 NODE-634 Done 2.1.5 CSHARP-1526 Done 2.2.2

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: