[SERVER-61142] Add each tenantId to recipient state machine Created: 30/Oct/21  Updated: 06/Dec/22  Resolved: 21/Nov/21

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

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: [DO NOT USE] Backlog - Server Serverless (Inactive)
Resolution: Won't Do Votes: 0
Labels: shard-merge-milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Serverless
Participants:

 Comments   
Comment by A. Jesse Jiryu Davis [ 21/Nov/21 ]

Actually we don't need this. I thought recipient nodes would need a list of tenantIds so they could find collections to delete if the merge aborts, but Cloud is responsible for that cleanup.

If we do make mongod responsible for cleanup we'll need a better solution than this: adding tenantIds to the state machine happens on the primary, and secondaries' lists of tenantIds are eventually consistent. However, the secondaries each import donor collections at their own pace, so secondaries' tenantIds and imported collections are out of sync during the merge.

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