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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Service arch 2020-06-29, Service arch 2020-07-13
    • Linked BF Score:
      0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.caimano Benjamin Caimano
              Reporter:
              amirsaman.memaripour Amirsaman Memaripour
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: