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
    • None

      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: