Get rid of getGlobalServiceContext

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Platforms 2018-01-01, Platforms 2018-01-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            DO NOT USE - Backlog - Dev Tools
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: