diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2020-05-28 12:13:31 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-28 19:22:43 +0000 |
commit | ae840738657927521d1869dbd7aecde0339bb376 (patch) | |
tree | cc7363c8eac9517a17fd5e3545b0dd5a1c63bf7d /jstests/sharding/index_commands_shard_targeting.js | |
parent | 27932e29d1d08fe2e3337af301c73d555e327a25 (diff) | |
download | mongo-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.js | 7 |
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++) { |