[SERVER-13376] Make sync7.js less sensitive to delays Created: 27/Mar/14  Updated: 11/Jul/16  Resolved: 27/Mar/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.6.0-rc2
Fix Version/s: 2.6.0-rc3

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 27/Mar/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13376 Make sync7.js less sensitive to delays
(cherry picked from commit 06c40ab0bb2a36c709fb4d3b91961e91fb08b1f1)
Branch: v2.4
https://github.com/mongodb/mongo/commit/0e1908763a942f33ff90ce30f0b7a5e90a8d947d

Comment by Githook User [ 27/Mar/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13376 Make sync7.js less sensitive to delays
(cherry picked from commit 06c40ab0bb2a36c709fb4d3b91961e91fb08b1f1)
Branch: v2.6
https://github.com/mongodb/mongo/commit/39b2a80cf017537c6ab439582363d2b7aa7da49a

Comment by Githook User [ 27/Mar/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13376 Make sync7.js less sensitive to delays
Branch: master
https://github.com/mongodb/mongo/commit/06c40ab0bb2a36c709fb4d3b91961e91fb08b1f1

Generated at Thu Feb 08 03:31:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.