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

Avoid submitting chunk-split tasks while shouldAutoSplit is false on the BalancerConfiguration

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.2
    • None
    • Sharding
    • None
    • Fully Compatible

    Description

      Right now we wait until we're here to check the "shouldAutoSplit" flag on the BalancerConfiguration, and that's after refreshing from the config server. We should check earlier on, in the ShardServerOpObserver, instead, so that we don't spend time submitting chunk split tasks when we aren't supposed to be autosplitting anyways. We should still track the chunk size of inserts in case it gets turned on. Also, since we have a periodic task that's running in the background to refresh the balancer configuration, I think it's okay if there's a short period of time where the setting has been changed but we're not submitting chunk split tasks.

      Attachments

        Activity

          People

            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: