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

collection_defragmentation.js should disallow balancing before running defragmentation a second time

    • 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

      In collection_defragmentation.js, we wait for defragmentation to finish, enable balancing, wait for balanced, and then reenable defragmentation. After reenabling defragmentation, we wait for it to complete and then check the defragmentation state. However, since balancing is still enabled, migrations can happen between defragmentation finishing and the final state checks happening.

      We should re-disable balancing after waiting for the collection to be balanced.

            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: