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

Use electionId to detect stale primaries.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      JAVA-1799 Done 2.13.2, 3.0.2, 3.1.0, 2.14.0
      PYTHON-924 Done 3.0.2
      CDRIVER-636 Done 1.3.0-rc0
      CSHARP-1274 Done 2.0.1, 2.1
      PERL-526 Done 1.0.2
      RUBY-912 Done 2.1.0
      CXX-597 Done legacy-1.0.4
      CXX-598 Done
      PHPC-297 Done 1.1.0
      NODE-455 Done
      $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 JAVA-1799 Done 2.13.2, 3.0.2, 3.1.0, 2.14.0 PYTHON-924 Done 3.0.2 CDRIVER-636 Done 1.3.0-rc0 CSHARP-1274 Done 2.0.1, 2.1 PERL-526 Done 1.0.2 RUBY-912 Done 2.1.0 CXX-597 Done legacy-1.0.4 CXX-598 Done PHPC-297 Done 1.1.0 NODE-455 Done

      Drivers should remember greatest electionId seen, and disbelieve primaries with electionIds that aren't greater.

      electionId (in isMaster response) will be backported to 2.6.x.

      Justification: only one election per 30 secs, servers must have clocks synced within 30 sec and run 3.0+ (or the 2.6.x mongod with the backport) for read-your-writes consistency with w: "majority" and primary reads.

      Set false primaries to state "Unknown", will be re-checked by next periodic monitoring

      Justification: will step down and roll back soon, remains a primary with obsolete electionId until then

            Assignee:
            barrie Barrie Segal
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: