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

Destroy the ServiceContext on clean shutdown in TSAN builds

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.5.1, 4.2.8, 4.4.0-rc13
    • Component/s: Sharding
    • Service Arch
    • 0

      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.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: