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

Destroy the ServiceContext on clean shutdown in TSAN builds

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 4.5.1, 4.2.8, 4.4.0-rc13
    • None
    • Sharding
    • Service Arch
    • 0

    Description

      At the moment DestructorActions are not executed at shutdown because quick exit process is used to reduce shutdown time. Memory reclaim, socket cleanup and thread shutdown is instead delegated to the underlying operating system.

      In order to use the ThreadSanitizer and to get meaningful diagnostic, all running threads  needs to be joined and cleaned up before exiting the process.

      In particular for some components (like the AuthorizationManager) this can be achieved by ensuring that the DestructorActions are actually executed on shutdown.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              tommaso.tocci@mongodb.com Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: