[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: |
|
||||
| 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: |
| Comment by Matthew Russotto [ 24/Jan/20 ] |
|
This is trivial and I will do on BF friday. |