[SERVER-53358] Need to shut down taskExecutor in TenantOpogBatcherTest explicitly in destructor Created: 14/Dec/20  Updated: 29/Oct/23  Resolved: 10/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: pm-1791_other_required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-01-11, Repl 2021-01-25, Repl 2021-02-08, Repl 2021-02-22
Participants:
Linked BF Score: 9

 Description   

Because we are using a shared pointer, there is a small window in which the component join() can complete while the task executor is still referenced. If the ServiceContext goes out of scope during that window, we hit an invariant.

(This was found when testing SERVER-51798 but is not related to it)

https://spruce.mongodb.com/task/mongodb_mongo_master_ubuntu1804_debug_aubsan_lite_unittests_patch_22030f4bb1057b15ae0da46425b90775f1e2019b_5fd7aeddd1fe074d2099d0ce_20_12_14_18_28_46/tests?execution=1



 Comments   
Comment by Githook User [ 10/Feb/21 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-53358 Need to shut down taskExecutor in TenantOpogBatcherTest explicitly in destructor
Branch: master
https://github.com/mongodb/mongo/commit/7d5cf026105db1693724db155b4f409b267ab352

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