[SERVER-42559] Race in WaitWithOpTimeEarlierThanLowestQueued causes it to fail Created: 31/Jul/19 Updated: 29/Oct/23 Resolved: 01/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.1, 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| 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 | ||||||||
| Backport Requested: |
v4.2
|
||||||||
| Sprint: | Sharding 2019-08-12 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 43 | ||||||||
| Description |
|
Most of the time, when the 2nd wait is queued, the background thread has not picked up the first wait yet, so it just cut in the line as expected. However, if the 2nd request is called and the background thread is already in the middle of waiting, it will get signalled instead. Before |
| Comments |
| Comment by Githook User [ 13/Sep/19 ] |
|
Author: {'email': 'randolph@mongodb.com', 'name': 'Randolph Tan'}Message: by making the test thread wait for the WaitForMajorityService thread pick up the 1st request before proceeding (cherry picked from commit 2f815dbeb37750d5fcde13469322657780077e62) |
| Comment by Githook User [ 01/Aug/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: by making the test thread wait for the WaitForMajorityService thread pick up the 1st request before proceeding |