summaryrefslogtreecommitdiff
path: root/jstests/hooks/run_validate_collections.js
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2020-03-10 13:36:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-12 12:55:20 +0000
commit43d07fd8d04de500ac36af61bcc8c02ea5bbfd26 (patch)
treed62955b9232bdbe4bac1d59af79aef6403293a08 /jstests/hooks/run_validate_collections.js
parent4bb92a5c30b8eb9619afa2e1d6ddb5a03b4c696d (diff)
downloadmongo-43d07fd8d04de500ac36af61bcc8c02ea5bbfd26.tar.gz
SERVER-45489 Remove compound hashed shard key FCV related code
Diffstat (limited to 'jstests/hooks/run_validate_collections.js')
-rw-r--r--jstests/hooks/run_validate_collections.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/hooks/run_validate_collections.js b/jstests/hooks/run_validate_collections.js
index 12104210f23..eeabba7e10e 100644
--- a/jstests/hooks/run_validate_collections.js
+++ b/jstests/hooks/run_validate_collections.js
@@ -21,13 +21,6 @@ if (topology.type === Topology.kStandalone) {
} else if (topology.type === Topology.kShardedCluster) {
hostList.push(...topology.configsvr.nodes);
- // Set the fail point on config server to allow FCV downgrade even in the presence of a
- // collection sharded on a compound hashed key.
- // TODO SERVER-45489: Delete this logic after branching for 4.4.
- const configSvrConn = new Mongo(topology.configsvr.primary);
- assert.commandWorked(configSvrConn.getDB('admin').runCommand(
- {configureFailPoint: "allowFCVDowngradeWithCompoundHashedShardKey", mode: "alwaysOn"}));
-
for (let shardName of Object.keys(topology.shards)) {
const shard = topology.shards[shardName];
@@ -46,11 +39,4 @@ if (topology.type === Topology.kStandalone) {
}
new CollectionValidator().validateNodes(hostList, setFCVHost);
-
-// Disable the failpoint that was set earlier on sharded clusters.
-if (topology.type === Topology.kShardedCluster) {
- const configSvrConn = new Mongo(topology.configsvr.primary);
- assert.commandWorked(configSvrConn.getDB('admin').runCommand(
- {configureFailPoint: "allowFCVDowngradeWithCompoundHashedShardKey", mode: "off"}));
-}
})();