[SERVER-41160] Add shutdown method for CatalogCacheLoader Created: 15/May/19  Updated: 29/Oct/23  Resolved: 01/Jul/19

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

Type: Bug Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Randolph Tan
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:
v4.2
Sprint: Sharding 2019-07-01, Sharding 2019-07-15
Participants:
Linked BF Score: 61

 Description   

As is, the ShardServerCatalogCacheLoader only shuts down threads and interrupts ops in its destructor. That destructor never gets called because CatalogCacheLoaders are ServiceContext decorations.

We should add a shutdown method to prevent work threads from running into late shutdown.



 Comments   
Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-41160 Add shutdown method for CatalogCacheLoader

(cherry picked from commit c1db1e046c420049a8df7d1621c8d991ee517ba4)
Branch: v4.2
https://github.com/mongodb/mongo/commit/55e52c640e5503cd05a08e664bb2425a1a796391

Comment by Githook User [ 01/Jul/19 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-41160 Add shutdown method for CatalogCacheLoader
Branch: master
https://github.com/mongodb/mongo/commit/c1db1e046c420049a8df7d1621c8d991ee517ba4

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