[SERVER-37149] Remove deadlock in ScheduleBeforeStartupTest Created: 14/Sep/18  Updated: 29/Oct/23  Resolved: 19/Sep/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.9, 4.0.3, 4.1.4

Type: Bug Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Platforms 2018-09-24
Participants:
Linked BF Score: 67

 Description   

It turns out that we race to acquire the test control mutex in ScheduleBeforeStartupTest. If the testing thread wins, then the periodic runner is stuck mid-job. Since it is blocked in the job, tearDown hangs.



 Comments   
Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-37149 Remove deadlock in ScheduleBeforeStartupTest

(cherry picked from commit 82b341a24fdf50fef468fc64b58b55818943779c)
Branch: v3.6
https://github.com/mongodb/mongo/commit/9739f4e5974ef70daac2190acc8db90d6e8311d1

Comment by Githook User [ 21/Sep/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-37149 Remove deadlock in ScheduleBeforeStartupTest

(cherry picked from commit 82b341a24fdf50fef468fc64b58b55818943779c)
Branch: v4.0
https://github.com/mongodb/mongo/commit/01674ed159322a6fabc92f32dd1f67b3bf1d79ad

Comment by Githook User [ 17/Sep/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-37149 Remove deadlock in ScheduleBeforeStartupTest
Branch: master
https://github.com/mongodb/mongo/commit/82b341a24fdf50fef468fc64b58b55818943779c

Generated at Thu Feb 08 04:45:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.