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

Fix ServiceExecutorFixed lifetime in death-tests

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2020-08-10
    • 0

    Description

      The DestructorFailsBeforeShutdown unit-test verifies that instances of ServiceExecutorFixed will abort the process if destroyed before shutdown. The current implementation of the test does not bind the lifetime of the executor to the test function, causing sporadic failures. We should have the test function (defined here) own the only instance of the executor, thus leaving the function would trigger the destructor for ServiceExecutorFixed.

      Attachments

        Activity

          People

            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: