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

Get rid of getGlobalServiceContext

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Developer Tools
    • Platforms 2018-01-01, Platforms 2018-01-15

    Description

      The presence of a static globalServiceContext variable is an impediment to being able to write unit-tests, which contain different environments or storage engines and it should be removed.

      The codebase seems to be pretty close to that goal.

      As part of this change, we should:

      • Get rid of the SetGlobalEnvironment initializer
      • Pass the ServiceContext as part of the InitializerContext
      • Move all storage engine variables outside of ServiceContext and put them on a decoration

      Attachments

        Activity

          People

            backlog-server-devtools DO NOT USE - Backlog - Dev Tools
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: