Need to shut down taskExecutor in TenantOpogBatcherTest explicitly in destructor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Repl 2021-01-11, Repl 2021-01-25, Repl 2021-02-08, Repl 2021-02-22
    • 9
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Matthew Russotto (Inactive)
            Reporter:
            Matthew Russotto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: