[SERVER-54790] Remove the 'allowMigrations' flag from config.collections when downgrading Created: 25/Feb/21  Updated: 29/Oct/23  Resolved: 02/Mar/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0-Metadata-Format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-03-08
Participants:

 Comments   
Comment by Githook User [ 02/Mar/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-54790 Remove the 'allowMigrations' flag from config.collections when downgrading

  • Making the allowMigrations field on config.collections optional
  • Since DDL operations cannot overlap with a setFCV, we can assume that
    allowMigrations is true when running the setFCV command. I added an
    invariant to verify that.
  • No reason to remove this field since it will never be present when
    downgrading.
    Branch: master
    https://github.com/mongodb/mongo/commit/392c79b60befd046bce5403a3ba6d087c599a478
Generated at Thu Feb 08 05:34:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.