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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: