[SERVER-61759] Unsetting the AllowMigrations flag should abort ongoing migrations Created: 29/Nov/21  Updated: 07/Nov/23  Resolved: 07/Dec/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-43099 Reenable random chunk migration failp... Closed
is depended on by SERVER-64987 Add support for concurrent DDL operat... Closed
is depended on by SERVER-65891 Make all distLock acquisitions local-... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-12-13
Participants:
Linked BF Score: 106

 Description   

In order to be able to remove the DistLock we will have to give more strong guarantees to the allowMigrations flag. The current meaning of this flag when it is unset is:

  • ongoing migrations will fail to commit,
  • new migrations will not be able to start.

Note that ongoing migrations are not aborted: they will just fail when they tried to commit the moveChunk on the configserver.

The goal of this task is to introduce a way to interrupt ongoing migrations and wait for them.



 Comments   
Comment by Githook User [ 07/Dec/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-61759 Interrupt and join migrations when allowMigrations is set to false
Branch: master
https://github.com/mongodb/mongo/commit/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97

Comment by Githook User [ 07/Dec/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-61759 Do not expose the cloner directly from the MigrationSourceManager
Branch: master
https://github.com/mongodb/mongo/commit/afaf05e8ee1ffee77f33154799e4270449249cf4

Comment by Githook User [ 03/Dec/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-61759 Make MoveTimingHelper a member of MigrationSourceManager
Branch: master
https://github.com/mongodb/mongo/commit/7302c69568bd1dc5d6158c4bd84384bf0cad0d09

Comment by Githook User [ 01/Dec/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-61759 Cleanup and add comments to MigrationSourceManager
Branch: master
https://github.com/mongodb/mongo/commit/f6cc0e8e02de04e79c4e80aba89418995b6b5f6a

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