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

Detect replset clock skew from electionids

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication

    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

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: