Run scheduled jobs before destroying ServiceContext

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-06-29
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ShardingTestFixture inherits from ServiceContextTest and ShardingTestFixtureCommon.

      Since ShardingTestFixtureCommon maintains a task executor that could run jobs scheduled from here, the destructor for ServiceContext must always be called after all jobs scheduled on the executor are retired. This ensures no client thread exists when unit-tests attempt to destroy the service context.

            Assignee:
            Matthew Saltz (Inactive)
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: