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

Destroy the ServiceContext on clean shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 4.4.0-rc7
    • None
    • Internal Code
    • Service Arch
    • ALL
    • v5.0
    • 0

    Description

      The MongoD, MongoS and DBTest processes create a ServiceContext at initialisation time, but never destroy it. This means a lot of internal services, which hang off the ServiceContext and use the Construction/Destruction actions do not actually get shut down.

      In the case of non-SAN builds, this is expected and valuable (because the time it takes to fully unwind all client stacks is long, and end users don't benefit from waiting), but for SAN builds we already unwind stacks, so also destroying the service context is completely acceptable.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              kaloian.manassiev@mongodb.com Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: