[SERVER-56226] [v4.4] Introduce 'permitMigrations' field on config.collections entry to prevent chunk migrations from committing Created: 21/Apr/21  Updated: 29/Oct/23  Resolved: 25/Oct/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.11, 4.2.18

Type: New Feature Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-56227 Add user-facing command to set allowM... Closed
is related to SERVER-50027 Freeze migrations on original sharded... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Sharding EMEA 2021-08-23, Sharding EMEA 2021-09-06, Sharding EMEA 2021-09-20, Sharding EMEA 2021-10-04, Sharding EMEA 2021-10-18, Sharding EMEA 2021-11-01
Participants:
Case:

 Description   

This ticket represents reimplementing SERVER-50027 on older branches due to the refactor of IDL-ifying the config.collections entry format not being suitable for cherry-pick backport.



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-56226 Implement a 'permitMigrations' collection property to prevent chunk migration's commits and balancing rounds
Branch: BACKPORT-9836
https://github.com/mongodb/mongo/commit/53bf3779928dccbb0abf1e302cf80096b8a63f4a

Comment by Githook User [ 26/Oct/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-56226 Implement a 'permitMigrations' collection property to prevent chunk migration's commits and balancing rounds

(cherry picked from commit 53bf3779928dccbb0abf1e302cf80096b8a63f4a)
Branch: v4.2
https://github.com/mongodb/mongo/commit/512107f95fb8f41c8f2d66a8514a6bc910156c20

Comment by Githook User [ 25/Oct/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-56226 Implement a 'permitMigrations' collection property to prevent chunk migration's commits and balancing rounds
Branch: v4.4
https://github.com/mongodb/mongo/commit/53bf3779928dccbb0abf1e302cf80096b8a63f4a

Comment by Marcos José Grillo Ramirez [ 08/Oct/21 ]

After a conversation with the team, in order to ensure a seamless upgrade between 4.4 and 5.0, and considering the surface area of the allowMigration flag changes (it's not just the original ticket, but the subsequent fixes to some scenarios that were not considered originally), we'll change the approach of this ticket. We'll be adding a new flag that will not be propagated on the catalog cache throughout the cluster, but will remain local to the config server, preventing new migrations to start, and preventing ongoing migrations to commit, and for 6.0 we'll merge the flag with allowMigrations, which additionally prevents migrations from starting on shards.

Comment by Marcos José Grillo Ramirez [ 31/Aug/21 ]

I've evaluated the changes necessary to complete this ticket, I'll start implementing it once I've finished other tasks on my backlog.

Generated at Thu Feb 08 05:38:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.