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

WaitForEndOfDefragmentation should not wait for the collection to be balanced

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-04-03

      Currently, during waitForEndOfDefragmentation, we are calling awaitCollectionBalance to make sure that the balancerCompliant flag is correct. However, this function is used before checking the defragmentation state in the different defragmentation tests (1, 2), so we don't really want to enable the balancer and wait for balanced. Since we only want to know that the first compliance violation is not defragmenting chunks, we don't actually care if balancer compliant was returned too soon.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: