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

Remove PeriodicBalancerSettingsRefresher that is both unused and incorrectly set up

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-10-23
    • 0

      PeriodicBalancerSettingsRefresher is currently unused because it was added as part of the intern autosplit project that didn't get finished over the summer.

      It has two problems
      1) It is instantiated incorrectly. It registers a shutdown task during sharding initialization, which can cause a crash if we're already in shutdown mode. The correct way to instantiate it it during single threaded start up of the server, where shutdown tasks can be safely registered, and then sharding initialization can simply start up the service.
      2) Furthermore it is hitting an invariant in BF-6736, the solution for which is outlined in SERVER-31537

      We're just going to remove PeriodicBalancerSettingsRefresher for now, because we don't need it and it is causing problems.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: