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

Make sync7.js less sensitive to delays

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc3
    • Affects Version/s: 2.6.0-rc2
    • Component/s: Testing Infrastructure
    • None
    • 0

      The distributed lock uses the localTime field of the serverStatus command to compare the clock skew between the local time and the remote time. It also take into account the amount of time for the command to execute (delay) and subtracts it from the raw delta.

      If the delay was big enough in the test, it can lower the average skew such that it will be within the 30 sec skew tolerance, making the test fail because it expects the movePrimary to fail because of skewed clocks.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: