[SERVER-45758] Add sleep to TimeInactiveMicrosShouldBeSetUponUnstashAndStash in session_test Created: 24/Jan/20  Updated: 29/Oct/23  Resolved: 24/Jan/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.0.15
Fix Version/s: 4.0.16

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
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: Repl 2020-01-27
Participants:
Linked BF Score: 0

 Description   

This test works by using a real clock and expecting it to advance after setting a transaction inactive. However on some platforms, it is possible for the clock to not advance at least one time quantum before checking the timer, so it fails. In master and 4.2 this is fixed using an injectable ticksource. This isn't available in 4.0, so we need to add a sleep.



 Comments   
Comment by Githook User [ 24/Jan/20 ]

Author:

{'username': 'mtrussotto', 'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com'}

Message: SERVER-45758 Add sleep to TimeInactiveMicrosShouldBeSetUponUnstashAndStash in session_test
Branch: v4.0
https://github.com/mongodb/mongo/commit/fe718c5644621df759085ee2bd55ec96252816cb

Comment by Matthew Russotto [ 24/Jan/20 ]

This is trivial and I will do on BF friday.

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