[SERVER-77594] Properly shut down executors in these files owned by Security Created: 30/May/23  Updated: 01/Dec/23  Resolved: 26/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Blake Oler Assignee: Shreyas Kalyan
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-77152 Call join on AuthorizationManagerImpl... Closed
Operating System: ALL
Backport Requested:
v7.0
Sprint: Security 2023-06-12, Security 2023-06-26, Security 2023-07-10
Participants:
Linked BF Score: 113

 Description   

In the following files, there exist executors that may not be properly shutdown by calling both join and shutdown.

  • db/free_mon/free_mon_mongod.cpp
    • 97,18:         _executor->startup();
  • util/net/ocsp/ocsp_manager.cpp
    • 103,14:         _pool->startup();
  • db/auth/authorization_manager_impl.cpp
    • 259,16:     _threadPool.startup();
  • util/net/ssl_manager_openssl.cpp
    • 1122,20:         _threadPool.startup();
  • db/modules/enterprise/src/ldap/connections/ldap_connection_reaper.cpp
    • 55,59:         std::call_once(_initExecutor, [this]() { _executor->startup(); });

To reference the full list of files/executors combed, please refer to the linked BF ticket.



 Comments   
Comment by Shreyas Kalyan [ 26/Jun/23 ]

It looks like there are some threads that can live indefinitely, and we do not want to block shutdown on these threads. Closing as wont fix.

Generated at Thu Feb 08 06:36:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.