Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53358

Need to shut down taskExecutor in TenantOpogBatcherTest explicitly in destructor

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2021-01-11, Repl 2021-01-25, Repl 2021-02-08, Repl 2021-02-22
    • 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

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: