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

Use electionId to detect stale primaries.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: