[DOCS-14979] Investigate changes in SERVER-56227: Add user-facing command to set allowMigrations to false for a sharded collection Created: 09/Dec/21  Updated: 13/Nov/23  Due: 14/Jan/22  Resolved: 12/Jan/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.2.18, 5.2.0, 4.4.11, 5.0.5, 5.0.6, 5.1.2, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Joseph Dougherty
Resolution: Fixed Votes: 0
Labels: sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-56227 Add user-facing command to set allowM... Closed
Participants:
Days since reply: 2 years, 3 weeks ago
Epic Link: DOCSP-17171
Story Points: 2

 Description   
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});



 Comments   
Comment by Githook User [ 20/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: DOCS-14979 adds setAllowMigrations command (#239)

  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: DOCS-14979 adds setAllowMigrations command (#239) (#300)

  • DOCS-14979 adds setAllowMigrations command (#239)
  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
  • updates release notes spacing
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: DOCS-14979 adds setAllowMigrations command (#239) (#299)

  • DOCS-14979 adds setAllowMigrations command (#239)
  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
  • updates release notes spacing
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: [BACKPORT] DOCS-14979 adds setAllowMigrations command (#239) (#295)

  • DOCS-14979 adds setAllowMigrations command (#239)
  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
  • updates release notes spacing
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: [BACKPORT] DOCS-14979 adds setAllowMigrations command (#239) (#298)

  • DOCS-14979 adds setAllowMigrations command (#239)
  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
  • updates release notes spacing
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: DOCS-14979 adds setAllowMigrations command (#239)

  • adds setAllowMigrations command
  • updates 5.2 Release Notes
  • review
  • adds refs for sharding-chunk-migration-automatic and sharding-chunk-migration-manual
  • updates nav and release notes
Comment by PM Bot [ 09/Dec/21 ]

Downstream changes updated for upstream SERVER-56227:
A new command was added after this ticket in versions 4.2, 4.4 and 5.0 with the following format:

db.adminCommand(

{setAllowMigrations: "db.collection", allowMigrations: false}

);

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

Generated at Thu Feb 08 08:11:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.