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

Use electionId to detect stale primaries.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      false

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              barrie Barrie Segal
              Reporter:
              barrie Barrie Segal
              Participants:
              Last commenter:
              Ian Whalen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 14 weeks, 1 day ago
                Date of 1st Reply: