[SERVER-76983] mongos shutdown procedure doesn't shutdown the CatalogCache Created: 10/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

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
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Sprint: Sharding EMEA 2023-05-15, Sharding EMEA 2023-05-29
Participants:
Linked BF Score: 135

 Description   

When the mongos process gracefully terminates, the running CatalogCache's threads are not joined causing some memory leaks.

As memory leaks at the process termination, the impact on the customers' business is definitely negligible, however a clean shutdown procedure should interrupt and join these running thread before closing the process.



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

Author:

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

Message: SERVER-76983 Shutdown and join the CatalogCached's thread pool when mongos terminates
Branch: v7.0
https://github.com/mongodb/mongo/commit/04241e63f5d54e64e613100aa5011149df72123f

Comment by Githook User [ 15/May/23 ]

Author:

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

Message: SERVER-76983 Shutdown and join the CatalogCached's thread pool when mongos terminates
Branch: v6.0
https://github.com/mongodb/mongo/commit/1ba9c4f2b277988a134938bbea636232dbc80de7

Comment by Githook User [ 15/May/23 ]

Author:

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

Message: SERVER-76983 Shutdown and join the CatalogCached's thread pool when mongos terminates
Branch: v5.0
https://github.com/mongodb/mongo/commit/bd8d75aefc976bd126cd4a03e2a30943ee1e5cdc

Comment by Githook User [ 15/May/23 ]

Author:

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

Message: SERVER-76983 Shutdown and join the CatalogCached's thread pool when mongos terminates
Branch: master
https://github.com/mongodb/mongo/commit/d97d54d03959846dd4294c811fe89fb91d7a9d89

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