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

Fix ServiceExecutorFixed lifetime in death-tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Service Arch 2020-08-10
    • 0

      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.

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

              Created:
              Updated:
              Resolved: