[SERVER-74432] Do not automatically retry the _shardsvrCloneCatalogData command Created: 28/Feb/23  Updated: 29/Oct/23  Resolved: 28/Feb/23

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

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

Issue Links:
Depends
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-03-06
Participants:
Linked BF Score: 152

 Description   

The donor shard of the movePrimary invokes the _shardsvrCloneCatalogData command to ask the recipient to clone the unsharded collections of the given database. 
This command is not idempotent, and the entire cloning phase of the movePrimary would be repeated after cleaning up any orphaned data on the recipient, the command must be invoked once.

With SERVER-73812, the _shardsvrCloneCatalogData command was called just one time, leaving to the coordinator infrastructure the burden of trying it again.

Nevertheless this change was reverted by mistake SERVER-73112 (i.e., Avoid constructing global namespaces directly).



 Comments   
Comment by Githook User [ 28/Feb/23 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-74432 Do not automatically retry the _shardsvrCloneCatalogData command
Branch: master
https://github.com/mongodb/mongo/commit/f8be4568e0f17a16c77897a452ab675657cbb28c

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