Disable the ability to run defragmentCollection on collections with active defragmentation

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding EMEA
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Today a customer can run the following command to defragment a collection on a collection that is already being defragmented.

      db.adminCommand({configureCollectionBalancing: "<database>.<collection>",  defragmentCollection: true}) 

      This behavior is unintended and could allow a customer to input a different chunkSize (example below)

      db.adminCommand({configureCollectionBalancing: "<database>.<collection>", defragmentCollection: true, chunkSize: 64})  

      By altering the chunkSize on a collection that is already being defragmented could lead to improper or less than ideal behavior. So a customer should not be able to successfully run a command to start defragmentation on a collection that is being actively defragmented.

            Assignee:
            [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: