[SERVER-64135] Make a MockReplicaSet for unit testing shard split Created: 02/Mar/22  Updated: 06/Dec/22  Resolved: 26/May/22

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

Type: Task Priority: Major - P3
Reporter: Didier Nadeau Assignee: [DO NOT USE] Backlog - Server Serverless (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Serverless
Participants:

 Description   

Currently ShardSplit unit tests must use a `donorSet` and `recipientSet` at all times, even before there is a "recipientSet" (before the split). We could add a `MockReplicaSetForSplit` that has a method to add recipientNodes and remove the needs for multiple replica set.

 

See https://github.com/10gen/mongo/pull/3527/files#r813824489 for more details.



 Comments   
Comment by Matt Broadstone [ 26/May/22 ]

This would be a nice-to-have in the future, but we did not end up needing it for any shard split unit tests.

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