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

Simplify initialization of BalancerStatsRegistry

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

      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:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: