Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19979

Detect replset clock skew from electionids

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Replication
    • Labels:
      None

      Description

      A replset member can detect clock skew between itself and a newly elected primary by checking the timestamp in the newly-elected member's election id, and comparing that to the local time when the member has first noticed the other member becoming PRIMARY. This requires that there be a recent previous heartbeat (eg. < 10s ago) showing the other member in not-PRIMARY state.

      This is motivated by replset clock skew > 30s having more effect now that election ids are being used to notice stale primaries.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              kevin.pulo Kevin Pulo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: