[SERVER-63426] Create a separate file with hook to run ShardingTest with build-in Config Created: 08/Feb/22  Updated: 06/Dec/22  Resolved: 28/Sep/22

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

Type: New Feature Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Won't Fix Votes: 0
Labels: sharding-nyc-subteam2, sharding-nyc-subteam2-catalog-poc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-63427 Create a pass-through python hook tha... Closed
is depended on by SERVER-63598 Umbrella ticket for minimal POC for o... Closed
Assigned Teams:
Sharding NYC
Sprint: Sharding 2022-02-21
Participants:
Story Points: 3

 Description   

The requirement is to not modify the `shardingtest.js` but to augment it. An example of how to do it is check_indexes_consistent_across_cluster.js that augments the `checkIndexesConsistentAcrossCluster`.

There is no goal to actually plug this hook to anything yet. We do not have any special shard startup flags for this project either, so the goal is to just override the constructor and prevent starting a separate config server, select which shard will be a config shard (make it shard 0 for now) and pretend to start this shard with a special flag (keep the flag variable empty because we don't have it).

Examine other examples where the `prototype.*=` pattern is used to learn all the known tricks in the toolbox and post relevant cases as comments here.


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