summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2021-07-26 12:10:15 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-27 16:46:25 +0000
commit1b8d8f798c353b2661e9063281ce3fe3c6882545 (patch)
treebcf69ff92e2cfeb714d1227619d00cf81dc9c70f /jstests
parent7cccaa4720c8ca16e7c8a35d325ea281fc1f9e2e (diff)
downloadmongo-1b8d8f798c353b2661e9063281ce3fe3c6882545.tar.gz
SERVER-58595 Remove legacy ConfigsvrCommitMovePrimary command
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/views/views_all_commands.js5
-rw-r--r--jstests/libs/override_methods/network_error_and_txn_override.js1
-rw-r--r--jstests/libs/override_methods/read_and_write_concern_helpers.js1
-rw-r--r--jstests/replsets/db_reads_while_recovering_all_commands.js2
-rw-r--r--jstests/replsets/tenant_migration_concurrent_writes_on_donor.js5
-rw-r--r--jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js3
-rw-r--r--jstests/sharding/read_write_concern_defaults_application.js4
-rw-r--r--jstests/sharding/safe_secondary_reads_drop_recreate.js6
-rw-r--r--jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js6
-rw-r--r--jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js6
10 files changed, 20 insertions, 19 deletions
diff --git a/jstests/core/views/views_all_commands.js b/jstests/core/views/views_all_commands.js
index 24246ddabb4..31a315730b3 100644
--- a/jstests/core/views/views_all_commands.js
+++ b/jstests/core/views/views_all_commands.js
@@ -88,7 +88,8 @@ let viewsCommandTests = {
_configsvrCommitChunksMerge: {skip: isAnInternalCommand},
_configsvrCommitChunkMigration: {skip: isAnInternalCommand},
_configsvrCommitChunkSplit: {skip: isAnInternalCommand},
- _configsvrCommitMovePrimary: {skip: isAnInternalCommand},
+ _configsvrCommitMovePrimary:
+ {skip: isAnInternalCommand}, // Can be removed once 6.0 is last LTS
_configsvrCommitReshardCollection: {skip: isAnInternalCommand},
_configsvrCreateDatabase: {skip: isAnInternalCommand},
_configsvrDropCollection:
@@ -98,7 +99,7 @@ let viewsCommandTests = {
_configsvrEnableSharding:
{skip: isAnInternalCommand}, // TODO (SERVER-58843): Remove once 6.0 becomes last LTS
_configsvrEnsureChunkVersionIsGreaterThan: {skip: isAnInternalCommand},
- _configsvrMoveChunk: {skip: isAnInternalCommand},
+ _configsvrMoveChunk: {skip: isAnInternalCommand}, // Can be removed once 6.0 is last LTS
_configsvrMovePrimary: {skip: isAnInternalCommand},
_configsvrRefineCollectionShardKey: {skip: isAnInternalCommand},
_configsvrRenameCollection: {skip: isAnInternalCommand},
diff --git a/jstests/libs/override_methods/network_error_and_txn_override.js b/jstests/libs/override_methods/network_error_and_txn_override.js
index d42e267ec7c..4de5cd9ba65 100644
--- a/jstests/libs/override_methods/network_error_and_txn_override.js
+++ b/jstests/libs/override_methods/network_error_and_txn_override.js
@@ -80,7 +80,6 @@ const kNonRetryableCommands = new Set([
"_configsvrCommitChunkSplit",
"_configsvrCreateDatabase",
"_configsvrMoveChunk",
- "_configsvrMovePrimary",
"_configsvrRemoveShard",
"_configsvrRemoveShardFromZone",
"_configsvrUpdateZoneKeyRange",
diff --git a/jstests/libs/override_methods/read_and_write_concern_helpers.js b/jstests/libs/override_methods/read_and_write_concern_helpers.js
index 0e83b39d6b3..eddb709d740 100644
--- a/jstests/libs/override_methods/read_and_write_concern_helpers.js
+++ b/jstests/libs/override_methods/read_and_write_concern_helpers.js
@@ -37,7 +37,6 @@ var kCommandsSupportingWriteConcern = new Set([
"_configsvrCommitChunkSplit",
"_configsvrCreateDatabase",
"_configsvrMoveChunk",
- "_configsvrMovePrimary",
"_configsvrRemoveShard",
"_configsvrRemoveShardFromZone",
"_configsvrUpdateZoneKeyRange",
diff --git a/jstests/replsets/db_reads_while_recovering_all_commands.js b/jstests/replsets/db_reads_while_recovering_all_commands.js
index 74155c28dc1..691d476cb07 100644
--- a/jstests/replsets/db_reads_while_recovering_all_commands.js
+++ b/jstests/replsets/db_reads_while_recovering_all_commands.js
@@ -38,12 +38,10 @@ const allCommands = {
_configsvrCommitChunksMerge: {skip: isPrimaryOnly},
_configsvrCommitChunkMigration: {skip: isPrimaryOnly},
_configsvrCommitChunkSplit: {skip: isPrimaryOnly},
- _configsvrCommitMovePrimary: {skip: isPrimaryOnly},
_configsvrCommitReshardCollection: {skip: isPrimaryOnly},
_configsvrCreateDatabase: {skip: isPrimaryOnly},
_configsvrEnsureChunkVersionIsGreaterThan: {skip: isPrimaryOnly},
_configsvrMoveChunk: {skip: isPrimaryOnly},
- _configsvrMovePrimary: {skip: isPrimaryOnly},
_configsvrRefineCollectionShardKey: {skip: isPrimaryOnly},
_configsvrRemoveChunks: {skip: isPrimaryOnly},
_configsvrRemoveShard: {skip: isPrimaryOnly},
diff --git a/jstests/replsets/tenant_migration_concurrent_writes_on_donor.js b/jstests/replsets/tenant_migration_concurrent_writes_on_donor.js
index d6677e85b4c..5bd1b399057 100644
--- a/jstests/replsets/tenant_migration_concurrent_writes_on_donor.js
+++ b/jstests/replsets/tenant_migration_concurrent_writes_on_donor.js
@@ -461,10 +461,11 @@ const testCases = {
_configsvrCommitChunksMerge: {skip: isNotRunOnUserDatabase},
_configsvrCommitChunkMigration: {skip: isNotRunOnUserDatabase},
_configsvrCommitChunkSplit: {skip: isNotRunOnUserDatabase},
- _configsvrCommitMovePrimary: {skip: isNotRunOnUserDatabase},
+ _configsvrCommitMovePrimary:
+ {skip: isNotRunOnUserDatabase}, // Can be removed once 6.0 is last LTS
_configsvrCreateDatabase: {skip: isNotRunOnUserDatabase},
_configsvrEnsureChunkVersionIsGreaterThan: {skip: isNotRunOnUserDatabase},
- _configsvrMoveChunk: {skip: isNotRunOnUserDatabase},
+ _configsvrMoveChunk: {skip: isNotRunOnUserDatabase}, // Can be removed once 6.0 is last LTS
_configsvrMovePrimary: {skip: isNotRunOnUserDatabase},
_configsvrRefineCollectionShardKey: {skip: isNotRunOnUserDatabase},
_configsvrRemoveShard: {skip: isNotRunOnUserDatabase},
diff --git a/jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js b/jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js
index 24efb253106..c9d880aebe4 100644
--- a/jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js
+++ b/jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js
@@ -135,9 +135,6 @@ checkCommandMongos({enableSharding: dbName}, setupFuncs.noop, cleanupFuncs.dropD
checkCommandMongos({movePrimary: dbName, to: st.shard0.name},
setupFuncs.createDatabase,
cleanupFuncs.dropDatabase);
-checkCommandConfigSvr({_configsvrMovePrimary: dbName, to: st.shard0.name},
- setupFuncs.createDatabase,
- cleanupFuncs.dropDatabase);
// shardCollection
checkCommandMongos(
diff --git a/jstests/sharding/read_write_concern_defaults_application.js b/jstests/sharding/read_write_concern_defaults_application.js
index c14c8430dd1..c9f59651d9e 100644
--- a/jstests/sharding/read_write_concern_defaults_application.js
+++ b/jstests/sharding/read_write_concern_defaults_application.js
@@ -88,7 +88,7 @@ let testCases = {
_configsvrCommitChunksMerge: {skip: "internal command"},
_configsvrCommitChunkMigration: {skip: "internal command"},
_configsvrCommitChunkSplit: {skip: "internal command"},
- _configsvrCommitMovePrimary: {skip: "internal command"},
+ _configsvrCommitMovePrimary: {skip: "internal command"}, // Can be removed once 6.0 is last LTS
_configsvrCommitReshardCollection: {skip: "internal command"},
_configsvrCreateDatabase: {skip: "internal command"},
_configsvrDropCollection:
@@ -99,7 +99,7 @@ let testCases = {
{skip: "internal command"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrEnsureChunkVersionIsGreaterThan: {skip: "internal command"},
_configsvrMoveChunk: {skip: "internal command"},
- _configsvrMovePrimary: {skip: "internal command"},
+ _configsvrMovePrimary: {skip: "internal command"}, // Can be removed once 6.0 is last LTS
_configsvrRefineCollectionShardKey: {skip: "internal command"},
_configsvrRemoveChunks: {skip: "internal command"},
_configsvrRemoveShard: {skip: "internal command"},
diff --git a/jstests/sharding/safe_secondary_reads_drop_recreate.js b/jstests/sharding/safe_secondary_reads_drop_recreate.js
index dcf463650f8..34fa64ef167 100644
--- a/jstests/sharding/safe_secondary_reads_drop_recreate.js
+++ b/jstests/sharding/safe_secondary_reads_drop_recreate.js
@@ -55,13 +55,15 @@ let testCases = {
_configsvrCommitChunksMerge: {skip: "primary only"},
_configsvrCommitChunkMigration: {skip: "primary only"},
_configsvrCommitChunkSplit: {skip: "primary only"},
- _configsvrCommitMovePrimary: {skip: "primary only"},
+ _configsvrCommitMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropCollection:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropDatabase:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrMoveChunk: {skip: "primary only"},
- _configsvrMovePrimary: {skip: "primary only"},
+ _configsvrMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrRemoveShardFromZone: {skip: "primary only"},
_configsvrReshardCollection: {skip: "primary only"},
_configsvrShardCollection:
diff --git a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
index 86b80c6924f..6cd53fe5644 100644
--- a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
+++ b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js
@@ -63,13 +63,15 @@ let testCases = {
_configsvrCommitChunksMerge: {skip: "primary only"},
_configsvrCommitChunkMigration: {skip: "primary only"},
_configsvrCommitChunkSplit: {skip: "primary only"},
- _configsvrCommitMovePrimary: {skip: "primary only"},
+ _configsvrCommitMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropCollection:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropDatabase:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrMoveChunk: {skip: "primary only"},
- _configsvrMovePrimary: {skip: "primary only"},
+ _configsvrMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrRemoveChunks: {skip: "primary only"},
_configsvrRemoveShardFromZone: {skip: "primary only"},
_configsvrRemoveTags: {skip: "primary only"},
diff --git a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
index 1036b7df678..e5fa405f330 100644
--- a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
+++ b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
@@ -53,13 +53,15 @@ let testCases = {
_configsvrCommitChunksMerge: {skip: "primary only"},
_configsvrCommitChunkMigration: {skip: "primary only"},
_configsvrCommitChunkSplit: {skip: "primary only"},
- _configsvrCommitMovePrimary: {skip: "primary only"},
+ _configsvrCommitMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropCollection:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrDropDatabase:
{skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrMoveChunk: {skip: "primary only"},
- _configsvrMovePrimary: {skip: "primary only"},
+ _configsvrMovePrimary:
+ {skip: "primary only"}, // TODO SERVER-58843: Remove once 6.0 becomes last LTS
_configsvrRemoveChunks: {skip: "primary only"},
_configsvrRemoveShardFromZone: {skip: "primary only"},
_configsvrRemoveTags: {skip: "primary only"},