diff options
author | Kshitij Gupta <kshitij.gupta@mongodb.com> | 2023-02-01 20:39:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-02 14:48:14 +0000 |
commit | 68e9845870508f1ca2edec587ee3f3c0567cc844 (patch) | |
tree | 6f62f15c5cf0a0085a1bcb4061ea03d1c78eed8d | |
parent | b3cbc90aab0e63a3f47c4a119702ed5b45454668 (diff) | |
download | mongo-68e9845870508f1ca2edec587ee3f3c0567cc844.tar.gz |
SERVER-73181: Enable feature flag if catalog shard mode enabled in resmoke.
-rw-r--r-- | buildscripts/resmokelib/testing/fixtures/shardedcluster.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py index dddb01ca8d2..94fc0758b1c 100644 --- a/buildscripts/resmokelib/testing/fixtures/shardedcluster.py +++ b/buildscripts/resmokelib/testing/fixtures/shardedcluster.py @@ -339,6 +339,18 @@ class ShardedClusterFixture(interface.Fixture): del mongod_options["shardsvr"] mongod_options["configsvr"] = "" replset_config_options["configsvr"] = True + mongod_options["set_parameters"]["featureFlagCatalogShard"] = "true" + + configsvr_options = self.configsvr_options.copy() + for option, value in configsvr_options.items(): + if option == "num_nodes": + continue + if option in shard_options: + if shard_options[option] != value: + raise Exception( + "Conflicting values when combining shard and configsvr options") + else: + shard_options[option] = value shard_logging_prefix = self._get_rs_shard_logging_prefix(index) |