[SERVER-62281] Ensure drain of migrations pending recovery on FCV upgrade/downgrade Created: 28/Dec/21  Updated: 29/Oct/23  Resolved: 07/Jan/22

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

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:
Related
related to SERVER-60834 Implement the upgrade/downgrade requi... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-01-10
Participants:

 Description   

SERVER-60834 added a barrier on setFCV after which it is guaranteed that no migrations are ongoing still using the old (on upgrade) or new (on downgrade) migration protocol. This barrier is implemented using the MigrationBlockingGuard. However, this is not enough to ensure that there are no migrations pending recovery (which no longer hold the ActiveMigrationRegistry).

This ticket is to ensure that after this barrier, any migration pending recovery has also completed.



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

Author:

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

Message: SERVER-62281 Ensure drain of migrations pending recovery on FCV upgrade/downgrade
Branch: master
https://github.com/mongodb/mongo/commit/6f8b7bd312e36b71990b32dda44d2511a27aa386

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