[SERVER-48070] account for system clock drift when calculating time since last ismaster check Created: 09/May/20  Updated: 29/Oct/23  Resolved: 05/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc10, 4.7.0

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

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2020-06-15
Participants:
Linked BF Score: 7

 Description   

Time delta returned from _timeSinceLastCheck can return negative value if system clock doesn't return monotonic values.

If this occurs return timeSinceLastCheck = 0 to be conservative.



 Comments   
Comment by Githook User [ 10/Jun/20 ]

Author:

{'name': 'Lamont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-48070: account for system clock drift when calculating the time since the last isMaster

(cherry picked from commit 7d6fb98b2ff8758cf246d8e0260487f805e16663)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ea468d841174cdf4678b747cefbe0abcb4e969eb

Comment by Githook User [ 05/Jun/20 ]

Author:

{'name': 'Lamont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-48070: account for system clock drift when calculating the time since the last isMaster
Branch: master
https://github.com/mongodb/mongo/commit/7d6fb98b2ff8758cf246d8e0260487f805e16663

Comment by Lamont Nelson [ 04/Jun/20 ]

code review: https://mongodbcr.appspot.com/591440012/

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