diff options
author | Luis Osta <luis.osta@mongodb.com> | 2020-08-04 21:11:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-04 21:41:45 +0000 |
commit | 938b20dafc00eb229ffb20c1c32ba5ef620320d9 (patch) | |
tree | 6c66582f02dcc2650d0cbe4e6c86af45a3905ae8 | |
parent | 0095137c226e1ad9757abe84cf1343adbcd91545 (diff) | |
download | mongo-938b20dafc00eb229ffb20c1c32ba5ef620320d9.tar.gz |
SERVER-49546 Remove batched insert test for range deletion tasks
-rw-r--r-- | jstests/sharding/range_deleter_batches_inserts.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/jstests/sharding/range_deleter_batches_inserts.js b/jstests/sharding/range_deleter_batches_inserts.js deleted file mode 100644 index a3f6771f842..00000000000 --- a/jstests/sharding/range_deleter_batches_inserts.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @tags: [requires_fcv_44] - */ -(function() { - -'use strict'; - -// Skip checking orphans because it takes a long time when there are so many chunks. Also we don't -// actually insert any data so there can't be orphans. -TestData.skipCheckOrphans = true; - -const dbName = "db1"; -const collName = "foo"; -const ns = dbName + "." + collName; - -const st = new ShardingTest({ - shards: 2, - config: 1, - other: { - // Set the migration verbosity to 0 to suppress log lines from processing range deletion - // tasks. - shardOptions: {setParameter: {logComponentVerbosity: tojson({sharding: {migration: 0}})}}, - // Set the transaction verbosity to 0 to suppress log lines from upgrading the config.chunks - // schema on setFCV to 4.4. - configOptions: {setParameter: {logComponentVerbosity: tojson({transaction: 0})}}, - } -}); - -// Set the slow query sample rate on the "config" database to 0% to suppress log lines from -// upgrading the config.chunks schema on setFCV to 4.4. -assert.commandWorked( - st.configRS.getPrimary().getDB("config").setProfilingLevel(1, {sampleRate: 0})); - -jsTest.log("Set FCV to 4.2 since we want to test upgrading the FCV to 4.4"); -assert.commandWorked(st.s.adminCommand({setFeatureCompatibilityVersion: "4.2"})); - -jsTest.log("Create a database."); -// enableSharding creates the database. -assert.commandWorked(st.s.adminCommand({enableSharding: dbName})); -st.ensurePrimaryShard(dbName, st.shard0.shardName); - -jsTest.log("Shard a collection with a huge number of initial chunks"); -const NUM_CHUNKS = 100000; -assert.commandWorked( - st.s.adminCommand({shardCollection: ns, key: {x: "hashed"}, numInitialChunks: NUM_CHUNKS})); -assert.gt(st.s.getDB("config").chunks.count(), NUM_CHUNKS - 1); - -jsTest.log("Set FCV to 4.4"); -assert.commandWorked(st.s.adminCommand({setFeatureCompatibilityVersion: "4.4"})); - -st.stop(); -})(); |