Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14979

Investigate changes in SERVER-56227: Add user-facing command to set allowMigrations to false for a sharded collection

      Downstream Change Summary

      A new command was added in SERVER-56227 and backported to versions 4.2, 4.4 and 5.0 with the following format:

      db.adminCommand(

      Unknown macro: {setAllowMigrations}

      );

      After executed prevent the start of new migrations, prevent in-flight migrations from committing, and prevent the balancer from doing new rounds. It requires the same permissions as moveChunk

      Description of Linked Ticket

      Proposed syntax:

      db.adminCommand({setAllowMigrations: "db.collection", allowMigrations: false});
      

            Assignee:
            joseph.dougherty@mongodb.com Joseph Dougherty
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 13 weeks ago