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

DiagnosticInfo for latches doesn't integrate well with unit-tests which create and destroy ServiceContexts

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.1, 4.7.0
    • Affects Version/s: 4.4.0-rc3
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Service arch 2020-06-29, Service arch 2020-07-13
    • 0

      AuthorizationManager owns a ThreadPool (see here) that is stopped/deleted at the end of the its lifetime. It also holds a reference to the ServiceContext, which is reset in here before the ServiceContext is deleted.

      Since the ThreadPool outlives ServiceContext, and it can schedule tasks that manage opCtxs locally (see here for example), AuthorizationManager should stop the ThreadPool before ServiceContext is deleted.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: