[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: |
|
||||
| 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: |
| Comment by Githook User [ 27/Mar/14 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |
| Comment by Githook User [ 27/Mar/14 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |