[SERVER-55547] Simplify tenant migration donor service run chain Created: 26/Mar/21  Updated: 29/Oct/23  Resolved: 31/Mar/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: pm-1791_non-cloud-blocking, pm-1791_polish
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.9
Sprint: Sharding 2021-04-05
Participants:

 Description   

The run() chain for tenant migration donor instances is several hundred lines long, making the high level steps hard to follow. It would be simpler if we moved the logic in each promise continuation to a helper function, like in the ReshardingCoordinatorService.



 Comments   
Comment by Githook User [ 31/Mar/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-55547 Make tenant migration donor abort index builds before fetching keys

(cherry picked from commit 2f63775f91c2348a1354dbdc999318989328333a)
Branch: v4.9
https://github.com/mongodb/mongo/commit/6805dc5959d817c03fa3430a545c1118d480ccbe

Comment by Githook User [ 31/Mar/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-55547 Make tenant migration donor abort index builds before fetching keys
Branch: master
https://github.com/mongodb/mongo/commit/2f63775f91c2348a1354dbdc999318989328333a

Comment by Githook User [ 31/Mar/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-55547 Simplify tenant migration donor service run chain

(cherry picked from commit ce0ca59fe078248631d0de5bc82a46374865c3fa)
Branch: v4.9
https://github.com/mongodb/mongo/commit/07d3954c49b98eb5f3c3b556404014da7621649b

Comment by Githook User [ 26/Mar/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-55547 Simplify tenant migration donor service run chain
Branch: master
https://github.com/mongodb/mongo/commit/ce0ca59fe078248631d0de5bc82a46374865c3fa

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