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

Balancer should load balancer settings before recovering migrations on failover

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-31
    • 0

      On failover, the new config primary recovers migrations and uses the BalancerConfiguration class' default maxChunkSize of 64 here without trying to load any maxChunkSize user setting from config.settings. Thus, a chunk larger than what the user has defined as jumbo may get moved.

      If the new primary was primary previously, it may have the correct maxChunkSize value set in the BalancerConfiguration instance: though it would be stale, whether right or wrong.

      BalancerConfiguration::refreshAndCheck should be called before balancer recovery, as it is done before running every auto balancing round.

            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: