summaryrefslogtreecommitdiff
path: root/jstests/libs/override_methods/sharding_continuous_config_stepdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/override_methods/sharding_continuous_config_stepdown.js')
-rw-r--r--jstests/libs/override_methods/sharding_continuous_config_stepdown.js57
1 files changed, 28 insertions, 29 deletions
diff --git a/jstests/libs/override_methods/sharding_continuous_config_stepdown.js b/jstests/libs/override_methods/sharding_continuous_config_stepdown.js
index 362310b5248..ad0e8e3d6de 100644
--- a/jstests/libs/override_methods/sharding_continuous_config_stepdown.js
+++ b/jstests/libs/override_methods/sharding_continuous_config_stepdown.js
@@ -1,36 +1,35 @@
(function() {
- "use strict";
+"use strict";
- load("jstests/libs/override_methods/continuous_stepdown.js");
- load("jstests/libs/override_methods/mongos_manual_intervention_actions.js");
+load("jstests/libs/override_methods/continuous_stepdown.js");
+load("jstests/libs/override_methods/mongos_manual_intervention_actions.js");
- ContinuousStepdown.configure({
- configStepdown: true,
- electionTimeoutMS: 5 * 1000,
- shardStepdown: false,
- stepdownDurationSecs: 10,
- stepdownIntervalMS: 8 * 1000,
- },
- {
- verbositySetting: {
- verbosity: 0,
- command: {verbosity: 1},
- network: {verbosity: 1, asio: {verbosity: 2}},
- tracking: {verbosity: 0}
- }
- });
+ContinuousStepdown.configure({
+ configStepdown: true,
+ electionTimeoutMS: 5 * 1000,
+ shardStepdown: false,
+ stepdownDurationSecs: 10,
+ stepdownIntervalMS: 8 * 1000,
+},
+ {
+ verbositySetting: {
+ verbosity: 0,
+ command: {verbosity: 1},
+ network: {verbosity: 1, asio: {verbosity: 2}},
+ tracking: {verbosity: 0}
+ }
+ });
- const originalShardingTest = ShardingTest;
- ShardingTest = function() {
- originalShardingTest.apply(this, arguments);
+const originalShardingTest = ShardingTest;
+ShardingTest = function() {
+ originalShardingTest.apply(this, arguments);
- // Automatically start the continuous stepdown thread on the config server replica set.
- this.startContinuousFailover();
- };
-
- // The checkUUIDsConsistentAcrossCluster() function is defined on ShardingTest's prototype, but
- // ShardingTest's prototype gets reset when ShardingTest is reassigned. We reload the override
- // to redefine checkUUIDsConsistentAcrossCluster() on the new ShardingTest's prototype.
- load('jstests/libs/override_methods/check_uuids_consistent_across_cluster.js');
+ // Automatically start the continuous stepdown thread on the config server replica set.
+ this.startContinuousFailover();
+};
+// The checkUUIDsConsistentAcrossCluster() function is defined on ShardingTest's prototype, but
+// ShardingTest's prototype gets reset when ShardingTest is reassigned. We reload the override
+// to redefine checkUUIDsConsistentAcrossCluster() on the new ShardingTest's prototype.
+load('jstests/libs/override_methods/check_uuids_consistent_across_cluster.js');
})();