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

Balancer should load balancer settings before recovering migrations on failover

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.4.0-rc2
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-31
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: