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

Document Server-Internal Contextual Singletons

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Service Arch 2021-08-23, Service Arch 2021-09-06, Service Arch 2021-09-20
    • Story Points:
      4

      Description

      We have a set of contextual singletons that exist in a clear hierarchy. They all live in src/mongo/db.

      Notable classes include:

      • ServiceContext
      • Client
      • OperationContext

      It's probably worth mentioning the OperationKiller and Interruptible interface with reference to the OperationContext.

      All of these pieces live in a single directory but they are used across the codebase, thus this documentation could live in a number of places:

      • docs/contexts.md would make this document immediately accessible.
      • src/mongo/db/readme.md as a large section.
      • src/mongo/db/contexts.md as a separate document.

      This is intended to be abstract documentation, describe relationships and state transitions not code in common language.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tyler.seip Tyler Seip
              Reporter:
              ben.caimano Benjamin Caimano (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: