diff options
Diffstat (limited to 'jstests/sharding')
30 files changed, 0 insertions, 58 deletions
diff --git a/jstests/sharding/accurate_count_with_predicate.js b/jstests/sharding/accurate_count_with_predicate.js index 9c7d4c22593..4b5fcef4e2e 100644 --- a/jstests/sharding/accurate_count_with_predicate.js +++ b/jstests/sharding/accurate_count_with_predicate.js @@ -9,9 +9,6 @@ (function() { "use strict"; -// Deliberately inserts orphans outside of migration. -TestData.skipCheckOrphans = true; - const st = new ShardingTest({shards: 2}); const shard0Coll = st.shard0.getCollection("test.slowcount"); const num = 10; diff --git a/jstests/sharding/aggregation_currentop.js b/jstests/sharding/aggregation_currentop.js index 692366a8a37..f3b6ac3be5c 100644 --- a/jstests/sharding/aggregation_currentop.js +++ b/jstests/sharding/aggregation_currentop.js @@ -18,8 +18,6 @@ // Restarts cause issues with authentication for awaiting replication. TestData.skipAwaitingReplicationOnShardsBeforeCheckingUUIDs = true; -// Restarts shard nodes with no keyFile. -TestData.skipCheckOrphans = true; (function() { "use strict"; diff --git a/jstests/sharding/all_config_servers_blackholed_from_mongos.js b/jstests/sharding/all_config_servers_blackholed_from_mongos.js index b9010f5055e..1acb63f4408 100644 --- a/jstests/sharding/all_config_servers_blackholed_from_mongos.js +++ b/jstests/sharding/all_config_servers_blackholed_from_mongos.js @@ -8,7 +8,6 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js b/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js index b0bd0f59e8c..4e9ae887bdc 100644 --- a/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js +++ b/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js @@ -6,7 +6,6 @@ // in this test. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/auth_no_config_primary.js b/jstests/sharding/auth_no_config_primary.js index a7fad6186a4..7e865eeb154 100644 --- a/jstests/sharding/auth_no_config_primary.js +++ b/jstests/sharding/auth_no_config_primary.js @@ -11,7 +11,6 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; TestData.skipCheckDBHashes = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/batch_write_command_sharded.js b/jstests/sharding/batch_write_command_sharded.js index cd088de4dd1..f3f260c1d83 100644 --- a/jstests/sharding/batch_write_command_sharded.js +++ b/jstests/sharding/batch_write_command_sharded.js @@ -8,7 +8,6 @@ // no config server primary by the end of this test. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { "use strict"; diff --git a/jstests/sharding/change_stream_update_lookup_collation.js b/jstests/sharding/change_stream_update_lookup_collation.js index 86e6cbb3ac7..3cd5e0b593f 100644 --- a/jstests/sharding/change_stream_update_lookup_collation.js +++ b/jstests/sharding/change_stream_update_lookup_collation.js @@ -14,9 +14,6 @@ if (!supportsMajorityReadConcern()) { return; } -// Shard key index has collation, which is not compatible with $min/$max -TestData.skipCheckOrphans = true; - const st = new ShardingTest({ shards: 2, config: 1, diff --git a/jstests/sharding/collation_lookup.js b/jstests/sharding/collation_lookup.js index dcb693265e0..ae3a15d59e6 100644 --- a/jstests/sharding/collation_lookup.js +++ b/jstests/sharding/collation_lookup.js @@ -13,9 +13,6 @@ load("jstests/aggregation/extras/utils.js"); // for arrayEq load("jstests/noPassthrough/libs/server_parameter_helpers.js"); // For setParameterOnAllHosts. load("jstests/libs/discover_topology.js"); // For findDataBearingNodes. -// Shard key index has collation, which is not compatible with $min/$max -TestData.skipCheckOrphans = true; - function runTests(withDefaultCollationColl, withoutDefaultCollationColl, collation) { // Test that the $lookup stage respects the inherited collation. let res = withDefaultCollationColl diff --git a/jstests/sharding/collation_targeting.js b/jstests/sharding/collation_targeting.js index 7b60eafc68d..5485a9cc428 100644 --- a/jstests/sharding/collation_targeting.js +++ b/jstests/sharding/collation_targeting.js @@ -3,9 +3,6 @@ (function() { "use strict"; -// Shard key index has collation, which is not compatible with $min/$max -TestData.skipCheckOrphans = true; - const caseInsensitive = { locale: "en_US", strength: 2 diff --git a/jstests/sharding/collation_targeting_inherited.js b/jstests/sharding/collation_targeting_inherited.js index c86198adbcb..ab3a94ef6d5 100644 --- a/jstests/sharding/collation_targeting_inherited.js +++ b/jstests/sharding/collation_targeting_inherited.js @@ -3,9 +3,6 @@ (function() { "use strict"; -// Shard key index has collation, which is not compatible with $min/$max -TestData.skipCheckOrphans = true; - const caseInsensitive = { locale: "en_US", strength: 2 diff --git a/jstests/sharding/config_rs_no_primary.js b/jstests/sharding/config_rs_no_primary.js index 91ce74de45d..e4a90569c87 100644 --- a/jstests/sharding/config_rs_no_primary.js +++ b/jstests/sharding/config_rs_no_primary.js @@ -5,7 +5,6 @@ // no config server primary by the end of this test. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { "use strict"; diff --git a/jstests/sharding/count_config_servers.js b/jstests/sharding/count_config_servers.js index ded75607cd0..4d358191c59 100644 --- a/jstests/sharding/count_config_servers.js +++ b/jstests/sharding/count_config_servers.js @@ -7,7 +7,6 @@ // shuts down 2 out of the 3 config servers. Therefore, we cannot do the check on this test. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { "use strict"; diff --git a/jstests/sharding/count_slaveok.js b/jstests/sharding/count_slaveok.js index aa8bd2237af..a0357de1f81 100644 --- a/jstests/sharding/count_slaveok.js +++ b/jstests/sharding/count_slaveok.js @@ -5,7 +5,6 @@ // Checking UUID consistency involves talking to a shard node, which in this test is shutdown TestData.skipCheckingUUIDsConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/cursor_valid_after_shard_stepdown.js b/jstests/sharding/cursor_valid_after_shard_stepdown.js index c96ce21ab3d..52452809915 100644 --- a/jstests/sharding/cursor_valid_after_shard_stepdown.js +++ b/jstests/sharding/cursor_valid_after_shard_stepdown.js @@ -2,7 +2,6 @@ // Checking UUID consistency involves talking to the shard primary, but by the end of this test, the // shard does not have a primary. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/index_commands_during_initial_split.js b/jstests/sharding/index_commands_during_initial_split.js index 27ba9c5fe39..7b5ab80b728 100644 --- a/jstests/sharding/index_commands_during_initial_split.js +++ b/jstests/sharding/index_commands_during_initial_split.js @@ -10,9 +10,6 @@ load("jstests/libs/fail_point_util.js"); load("jstests/libs/parallelTester.js"); load("jstests/sharding/libs/sharded_index_util.js"); -// Test intentionally inserts orphans outside of migration. -TestData.skipCheckOrphans = true; - /* * Shards the given collection. */ diff --git a/jstests/sharding/index_commands_shard_targeting.js b/jstests/sharding/index_commands_shard_targeting.js index e3b3f8d6a40..38012c7baf4 100644 --- a/jstests/sharding/index_commands_shard_targeting.js +++ b/jstests/sharding/index_commands_shard_targeting.js @@ -12,9 +12,6 @@ load("jstests/libs/fail_point_util.js"); load("jstests/sharding/libs/sharded_index_util.js"); load("jstests/sharding/libs/shard_versioning_util.js"); -// Test deliberately inserts orphans outside of migration. -TestData.skipCheckOrphans = true; - /* * Runs the command after performing chunk operations to make the primary shard (shard0) not own * any chunks for the collection, and the subset of non-primary shards (shard1 and shard2) that diff --git a/jstests/sharding/index_operations_abort_concurrent_outgoing_migrations.js b/jstests/sharding/index_operations_abort_concurrent_outgoing_migrations.js index e7508fc58c1..6a350b90693 100644 --- a/jstests/sharding/index_operations_abort_concurrent_outgoing_migrations.js +++ b/jstests/sharding/index_operations_abort_concurrent_outgoing_migrations.js @@ -9,9 +9,6 @@ load('jstests/libs/chunk_manipulation_util.js'); load("jstests/libs/parallelTester.js"); load("jstests/sharding/libs/sharded_index_util.js"); -// Test deliberately inserts orphans outside of migration. -TestData.skipCheckOrphans = true; - /* * Runs moveChunk on the host to move the chunk to the given shard. */ diff --git a/jstests/sharding/lagged_config_secondary.js b/jstests/sharding/lagged_config_secondary.js index 5cc0504deca..06b186c8666 100644 --- a/jstests/sharding/lagged_config_secondary.js +++ b/jstests/sharding/lagged_config_secondary.js @@ -7,7 +7,6 @@ // server, but this test is designed to make mongos time out when reading from the config server. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { var st = diff --git a/jstests/sharding/localhostAuthBypass.js b/jstests/sharding/localhostAuthBypass.js index eb9f3f771c8..31103df7fe4 100644 --- a/jstests/sharding/localhostAuthBypass.js +++ b/jstests/sharding/localhostAuthBypass.js @@ -8,7 +8,6 @@ // which stops the mongoses before calling ShardingTest.stop. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/migration_fails_if_exists_in_rangedeletions.js b/jstests/sharding/migration_fails_if_exists_in_rangedeletions.js index 101fc0bf0f8..ecad310035e 100644 --- a/jstests/sharding/migration_fails_if_exists_in_rangedeletions.js +++ b/jstests/sharding/migration_fails_if_exists_in_rangedeletions.js @@ -8,9 +8,6 @@ load("jstests/libs/uuid_util.js"); -// TODO: remove after SERVER-45338 is fixed. -TestData.skipCheckOrphans = true; - const dbName = "test"; const collName = "foo"; const ns = dbName + "." + collName; diff --git a/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js b/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js index 30b81200c38..dde1f029ad4 100644 --- a/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js +++ b/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js @@ -15,7 +15,6 @@ // test, one shard does not have a primary. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; // Replica set nodes started with --shardsvr do not enable key generation until they are added to a // sharded cluster and reject commands with gossiped clusterTime from users without the diff --git a/jstests/sharding/mongos_rs_shard_failure_tolerance.js b/jstests/sharding/mongos_rs_shard_failure_tolerance.js index 34d68c45f6e..b58774eb510 100644 --- a/jstests/sharding/mongos_rs_shard_failure_tolerance.js +++ b/jstests/sharding/mongos_rs_shard_failure_tolerance.js @@ -15,7 +15,6 @@ // test, one shard does not have a primary. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/mr_and_agg_versioning.js b/jstests/sharding/mr_and_agg_versioning.js index e53eab11e2e..552c43aadc3 100644 --- a/jstests/sharding/mr_and_agg_versioning.js +++ b/jstests/sharding/mr_and_agg_versioning.js @@ -2,9 +2,6 @@ (function() { "use strict"; -// Test delibarately inserts orphaned data outside of migrations. -TestData.skipCheckOrphans = true; - const st = new ShardingTest({shards: 2, mongos: 3}); const dbName = jsTest.name(); diff --git a/jstests/sharding/prefix_shard_key.js b/jstests/sharding/prefix_shard_key.js index 2c33ff77fd5..b10c8fb79f4 100644 --- a/jstests/sharding/prefix_shard_key.js +++ b/jstests/sharding/prefix_shard_key.js @@ -10,9 +10,6 @@ (function() { 'use strict'; -// Shard key index does not exactly match shard key, so it is not compatible with $min/$max. -TestData.skipCheckOrphans = true; - var checkDocCounts = function(expectedShardCount) { for (var shardName in expectedShardCount) { var shard = (shardName == s.shard0.shardName ? s.shard0 : s.shard1); diff --git a/jstests/sharding/primary_config_server_blackholed_from_mongos.js b/jstests/sharding/primary_config_server_blackholed_from_mongos.js index 72985bf36f3..0424a307621 100644 --- a/jstests/sharding/primary_config_server_blackholed_from_mongos.js +++ b/jstests/sharding/primary_config_server_blackholed_from_mongos.js @@ -6,7 +6,6 @@ // Checking index consistency involves talking to the primary config server which is blackholed from // the mongos in this test. TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; var st = new ShardingTest({shards: 2, mongos: 1, useBridge: true}); diff --git a/jstests/sharding/read_pref.js b/jstests/sharding/read_pref.js index b3e4f835ea7..454cc2fb6dd 100644 --- a/jstests/sharding/read_pref.js +++ b/jstests/sharding/read_pref.js @@ -5,7 +5,6 @@ // Checking UUID consistency involves talking to a shard node, which in this test is shutdown TestData.skipCheckingUUIDsConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { 'use strict'; diff --git a/jstests/sharding/resubmit_rangedeletions_on_stepup.js b/jstests/sharding/resubmit_rangedeletions_on_stepup.js index 03f68ae7558..71a8c79c7a2 100644 --- a/jstests/sharding/resubmit_rangedeletions_on_stepup.js +++ b/jstests/sharding/resubmit_rangedeletions_on_stepup.js @@ -9,8 +9,6 @@ load("jstests/libs/uuid_util.js"); TestData.skipCheckingUUIDsConsistentAcrossCluster = true; -// Test deliberately keeps range deletion in pending state. -TestData.skipCheckOrphans = true; const dbName = "test"; const collName = "foo"; diff --git a/jstests/sharding/shard_insert_getlasterror_w2.js b/jstests/sharding/shard_insert_getlasterror_w2.js index a85126c1c04..38bb2db5fa3 100644 --- a/jstests/sharding/shard_insert_getlasterror_w2.js +++ b/jstests/sharding/shard_insert_getlasterror_w2.js @@ -5,7 +5,6 @@ // stops 2/3 nodes of a replica set. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; TestData.skipCheckingIndexesConsistentAcrossCluster = true; -TestData.skipCheckOrphans = true; (function() { "use strict"; diff --git a/jstests/sharding/unowned_doc_filtering.js b/jstests/sharding/unowned_doc_filtering.js index 07c42453ca9..e61e1247ee9 100644 --- a/jstests/sharding/unowned_doc_filtering.js +++ b/jstests/sharding/unowned_doc_filtering.js @@ -10,9 +10,6 @@ // This test shuts down shards. TestData.skipCheckingUUIDsConsistentAcrossCluster = true; -// Test deliberately inserts orphans. -TestData.skipCheckOrphans = true; - (function() { "use strict"; diff --git a/jstests/sharding/update_replace_id.js b/jstests/sharding/update_replace_id.js index 1b5ab8f43e0..8c6f8e29a99 100644 --- a/jstests/sharding/update_replace_id.js +++ b/jstests/sharding/update_replace_id.js @@ -16,9 +16,6 @@ (function() { load("jstests/libs/profiler.js"); // For profilerHas*OrThrow helper functions. -// Test deliberately inserts orphans outside of migrations. -TestData.skipCheckOrphans = true; - const st = new ShardingTest({shards: 2, mongos: 1, config: 1, other: {enableBalancer: false}}); const mongosDB = st.s0.getDB(jsTestName()); |