[SERVER-62296] MoveChunk should recover any unfinished migration before starting a new one Created: 29/Dec/21  Updated: 29/Oct/23  Resolved: 30/Dec/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.3.0, 5.1.2, 5.0.6, 5.2.0-rc4

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-65371 MigrationSourceManager running on sec... Closed
Related
is related to SERVER-62245 MigrationRecovery must not assume tha... Closed
is related to SERVER-60521 Deadlock on stepup due to moveChunk c... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.2, v5.1, v5.0
Sprint: Sharding EMEA 2022-01-10
Participants:

 Description   

When starting a moveChunk, it should be ensured that there is no unfinished migration pending recovery (even for other collections). Ensuring that will guarantee that there's never more than one document in config.migrationCoordinators. 

This prevents the situation that led to SERVER-62245.



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

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-62296 MoveChunk should recover any unfinished migration before starting a new one

(cherry picked from commit dd35d0eae5c81db28eb618ae0ae588e32a4a617a)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d5618f96bdd4630736d8441b38a7287adff8aed7

Comment by Githook User [ 30/Dec/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-62296 MoveChunk should recover any unfinished migration before starting a new one

(cherry picked from commit dd35d0eae5c81db28eb618ae0ae588e32a4a617a)
Branch: v5.1
https://github.com/mongodb/mongo/commit/31da7be10b857fb81c7dce6fe5f4b6c1554c4a17

Comment by Githook User [ 30/Dec/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-62296 MoveChunk should recover any unfinished migration before starting a new one

(cherry picked from commit dd35d0eae5c81db28eb618ae0ae588e32a4a617a)
Branch: v5.2
https://github.com/mongodb/mongo/commit/9d6087e2b8281d5d6acbe5c00e77b67a6a519b90

Comment by Githook User [ 30/Dec/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-62296 MoveChunk should recover any unfinished migration before starting a new one
Branch: master
https://github.com/mongodb/mongo/commit/dd35d0eae5c81db28eb618ae0ae588e32a4a617a

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