[SERVER-65300] Refactor tenant migration recipient state machinery code. Created: 06/Apr/22  Updated: 29/Oct/23  Resolved: 26/Apr/22

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

Type: Task Priority: Major - P3
Reporter: Suganthi Mani Assignee: Suganthi Mani
Resolution: Fixed Votes: 0
Labels: shard-merge-milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63122 Remove logical cloning procedure for ... Closed
is depended on by SERVER-61145 Start fetching donor oplog entries Closed
Problem/Incident
Related
related to SERVER-67342 Tenant migration oplog buffer should ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-04-18, Server Serverless 2022-05-02
Participants:
Linked BF Score: 162

 Description   

Currently recipient state machinery contains a very long future continuation chain where shard merge and multi-tenant migration (MTM) protocol logics are interleaved. As a result,
1) Unnecessarily shard merge protocol needs to set some state machine state fields specific to MTM protocol.
2) code readability is bad.
3) Too many if blocks to skip logics either for MTM or shard merge protocol.



 Comments   
Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-65300 multiversion jstests fix.
Branch: master
https://github.com/mongodb/mongo/commit/df26f908c50bd2efaa48c2d9dade971f165674dd

Comment by Githook User [ 26/Apr/22 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-65300 Refactor tenant migration recipient state machinery code.
Branch: master
https://github.com/mongodb/mongo/commit/61087a02978226541e7f17f51a8755b680e26364

Generated at Thu Feb 08 06:02:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.