[SERVER-30684] Add support for top-level config and shard options in resmoke.py's ShardedClusterFixture Created: 16/Aug/17  Updated: 30/Oct/23  Resolved: 01/Sep/17

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

Type: New Feature Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Yves Duhem
Resolution: Fixed Votes: 0
Labels: sharding36-passthrough-testing, tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-09-11
Participants:

 Description   

There's a bit of YAML configuration changes and plumbing work in order to support being able to specify the all_nodes_electable parameter from SERVER-30683 for the ReplicaSetFixture instances that the ShardedClusterFixture spawns.

  • A config_options parameter should be added to the ShardedClusterFixture constructor. The parameter should default to an empty dictionary to avoid any impact on existing usages of the ShardedClusterFixture class by other test suites. The arguments to the ReplicaSetFixture constructed in ShardedClusterFixture#_new_configsvr() should be merged according to the following rules of precedence:
    1. The hardcoded values in ShardedClusterFixture#_new_configsvr().
    2. The contents of config_options.
    3. The contents of mongod_options.
    4. Any shared parameters specified to the ShardedClusterFixture constructor.
  • A shard_options parameter should be added to the ShardedClusterFixture constructor. The parameter should default to an empty dictionary to avoid any impact on existing usages of the ShardedClusterFixture class by other test suites. The arguments to the ReplicaSetFixture constructed in ShardedClusterFixture#_new_rs_shard() should be merged according to the following rules of precedence:
    1. The hardcoded values in ShardedClusterFixture#_new_rs_shard().
    2. The contents of shard_options.
    3. The contents of mongod_options.
    4. Any shared parameters specified to the ShardedClusterFixture constructor.


 Comments   
Comment by Githook User [ 01/Sep/17 ]

Author:

{'username': 'syev', 'name': 'Yves Duhem', 'email': 'yves.duhem@mongodb.com'}

Message: SERVER-30684 Add configsvr and shard options to ShardedClusterFixture
Branch: master
https://github.com/mongodb/mongo/commit/c31e309846609b4309a72868db7eafc189f839ca

Generated at Thu Feb 08 04:24:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.