[SERVER-31210] Improve the TwoJobsDontDeadlock test in periodic_runner_asio_test.cpp Created: 21/Sep/17  Updated: 30/Oct/23  Resolved: 26/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mira Carey
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: Platforms 2017-10-02
Participants:
Linked BF Score: 0

 Description   

The TwoJobsDontDeadlock test is trying to wait for two threads to start in parallel before execution continues. It should be changed to use boost::barrier to make the test more reliable.



 Comments   
Comment by Githook User [ 26/Sep/17 ]

Author:

{'email': 'jcarey@argv.me', 'name': 'Jason Carey', 'username': 'hanumantmk'}

Message: SERVER-31210 Fix TwoJobsDontDeadlock

Make sure to teardown the fixture before returning (to avoid writes to
no-longer valid portions of the stack).
Branch: master
https://github.com/mongodb/mongo/commit/4edbec2c6caf55412e7aad36af6f33fcc8c67b29

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