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

Destroy the ServiceContext on clean shutdown

    XMLWordPrintableJSON

Details

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

    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

        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: