Simplify initialization of BalancerStatsRegistry

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Sharding EMEA
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the BalancerStatsRegistry can only be used on FCV in which the OrphanTracking feature flag is enabled (>= 6.0).
      For this reason the initialization/termination logic of the registry is a bit convoluted.

      Once the OrphanTracking feature flag is removed ( SERVER-65815) we should simplify the logic by assuming that the registry is only initialized on stepUp and terminated on stepDown.

      This means that we can stop exposing BalancerStatsRegistry::initializeAsync and BalancerStatsRegistry::terminate functions

            Assignee:
            [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: