[SERVER-44800] Change ThreadPool to join idle threads instead of detaching them Created: 22/Nov/19  Updated: 29/Oct/23  Resolved: 30/Jan/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: neweng, save-for-sam
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2020-02-10
Participants:
Linked BF Score: 18

 Description   

In the ThreadPool in certain cases we detach threads. This can lead to ASAN failures if we shut down before the thread has completed. We should change the logic to join these threads instead.



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

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@10gen.com'}

Message: SERVER-44800 Wait for retired threads to join in ThreadPool
Branch: master
https://github.com/mongodb/mongo/commit/84dc6fcc49eb679c7fe7a5614f496c65e95576fb

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