[SERVER-43238] Use a clock jitter constant for timing unittest on windows Created: 09/Sep/19  Updated: 29/Oct/23  Resolved: 12/Sep/19

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-09-23
Participants:
Linked BF Score: 11

 Description   

On older Windows systems it is possible for the clock to jump backwards, and in rare cases this affects unit tests for d_concurrency.cpp. Work around this issue by doing less strict comparisons on Windows machines.



 Comments   
Comment by Githook User [ 12/Sep/19 ]

Author:

{'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert.bosch@mongodb.com'}

Message: SERVER-43238 Tolerate clock jitter on Windows for d_concurrency_test
Branch: master
https://github.com/mongodb/mongo/commit/268ab18867527611aac1b515dbc90e6f588879e0

Generated at Thu Feb 08 05:02:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.