[SERVER-77074] mongod termination process should always shutdown and join the CatalogCached's thread pool Created: 12/May/23  Updated: 29/Oct/23  Resolved: 15/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1, 6.0.7, 5.0.19, 4.4.23

Type: Bug Priority: Major - P3
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Sprint: Sharding EMEA 2023-05-15
Participants:
Linked BF Score: 59

 Description   

The CatalogCache's thread pool is actually shutted down and joined by the main process when the mongod process terminates if the ShardingState is enabled.
In some undetermined conditions, the ShardingState is disabled but some threads of this pool are still running causing memory leaks.

The goal of this ticket is to determine the proper condition to shutdown and join the CatalogCache's thread pool.



 Comments   
Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-77074 Always shutdown and join the CatalogCached's thread pool when mongod terminates
Branch: v5.0
https://github.com/mongodb/mongo/commit/75b6ba8aa4858b9c6638db16dfbc3454f9c01aa7

Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-77074 Always shutdown and join the CatalogCached's thread pool when mongod terminates
Branch: v7.0
https://github.com/mongodb/mongo/commit/9c8c6e81e5cdf765aac73bbe7b6e3af0576c5c72

Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-77074 Always shutdown and join the CatalogCached's thread pool when mongod terminates
Branch: v6.0
https://github.com/mongodb/mongo/commit/20c025d5eb6410dece1cc77f5831ed0e67471566

Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-77074 Always shutdown and join the CatalogCached's thread pool when mongod terminates
Branch: v4.4
https://github.com/mongodb/mongo/commit/fa6e2a13b3294f014a492f1e66e514ca41e7ffbe

Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-77074 Always shutdown and join the CatalogCached's thread pool when mongod terminates
Branch: master
https://github.com/mongodb/mongo/commit/1578ea98998e33d06cc1776f2bbd86d626370124

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