summaryrefslogtreecommitdiff
path: root/jstests/sharding/index_commands_shard_targeting.js
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-05-28 12:13:31 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-28 19:22:43 +0000
commitae840738657927521d1869dbd7aecde0339bb376 (patch)
treecc7363c8eac9517a17fd5e3545b0dd5a1c63bf7d /jstests/sharding/index_commands_shard_targeting.js
parent27932e29d1d08fe2e3337af301c73d555e327a25 (diff)
downloadmongo-ae840738657927521d1869dbd7aecde0339bb376.tar.gz
SERVER-47907 Remove unnecessary shard from index_commands_shard_targeting.js
Diffstat (limited to 'jstests/sharding/index_commands_shard_targeting.js')
-rw-r--r--jstests/sharding/index_commands_shard_targeting.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/sharding/index_commands_shard_targeting.js b/jstests/sharding/index_commands_shard_targeting.js
index 606f013f46e..256e9a3c001 100644
--- a/jstests/sharding/index_commands_shard_targeting.js
+++ b/jstests/sharding/index_commands_shard_targeting.js
@@ -2,7 +2,6 @@
* Test that the index commands send and check shard versions, and only target the shards
* that have chunks for the collection. Also test that the commands fail if they are run
* when the critical section is in progress, and block until the critical section is over.
- * @tags: [need_fixing_for_46]
*/
(function() {
"use strict";
@@ -45,7 +44,6 @@ function assertCommandChecksShardVersions(st, dbName, collName, testCase) {
// version.
ShardVersioningUtil.assertCollectionVersionOlderThan(st.shard0, ns, latestCollectionVersion);
ShardVersioningUtil.assertCollectionVersionOlderThan(st.shard2, ns, latestCollectionVersion);
- ShardVersioningUtil.assertCollectionVersionOlderThan(st.shard3, ns, latestCollectionVersion);
if (testCase.setUpFuncForCheckShardVersionTest) {
testCase.setUpFuncForCheckShardVersionTest();
@@ -60,9 +58,6 @@ function assertCommandChecksShardVersions(st, dbName, collName, testCase) {
// Assert that the targeted shards have the latest collection version after the command is run.
ShardVersioningUtil.assertCollectionVersionEquals(st.shard1, ns, latestCollectionVersion);
ShardVersioningUtil.assertCollectionVersionEquals(st.shard2, ns, latestCollectionVersion);
-
- // Assert that the unaffected shard still has the stale collection version.
- ShardVersioningUtil.assertCollectionVersionOlderThan(st.shard3, ns, latestCollectionVersion);
}
/*
@@ -108,7 +103,7 @@ function assertCommandBlocksIfCriticalSectionInProgress(
joinMoveChunk();
}
-const numShards = 4;
+const numShards = 3;
const st = new ShardingTest({shards: numShards});
const allShards = [];
for (let i = 0; i < numShards; i++) {