summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorAntonio Fuschetto <antonio.fuschetto@mongodb.com>2023-02-03 21:18:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-04 00:30:01 +0000
commit28f8cd202ec6def6703d5a52c9599a27a85e35d6 (patch)
tree1c492ba4bb8641ea94136a22709082a5e2f9fbd7 /jstests/replsets
parent2110371e64514ce3ddae01c08f5b225ba5eaadc5 (diff)
downloadmongo-28f8cd202ec6def6703d5a52c9599a27a85e35d6.tar.gz
SERVER-71201 Prevent operations on the recipient while the movePrimary is in progress
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/all_commands_downgrading_to_upgraded.js2
-rw-r--r--jstests/replsets/db_reads_while_recovering_all_commands.js2
-rw-r--r--jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js2
3 files changed, 6 insertions, 0 deletions
diff --git a/jstests/replsets/all_commands_downgrading_to_upgraded.js b/jstests/replsets/all_commands_downgrading_to_upgraded.js
index 2d9e3b1831b..2c058b7bb24 100644
--- a/jstests/replsets/all_commands_downgrading_to_upgraded.js
+++ b/jstests/replsets/all_commands_downgrading_to_upgraded.js
@@ -121,6 +121,8 @@ const allCommands = {
_shardsvrJoinMigrations: {skip: isAnInternalCommand},
_shardsvrMergeAllChunksOnShard: {skip: isAnInternalCommand},
_shardsvrMovePrimary: {skip: isAnInternalCommand},
+ _shardsvrMovePrimaryEnterCriticalSection: {skip: isAnInternalCommand},
+ _shardsvrMovePrimaryExitCriticalSection: {skip: isAnInternalCommand},
_shardsvrMoveRange: {skip: isAnInternalCommand},
_shardsvrRenameCollection: {skip: isAnInternalCommand},
_shardsvrRenameCollectionParticipant: {skip: isAnInternalCommand},
diff --git a/jstests/replsets/db_reads_while_recovering_all_commands.js b/jstests/replsets/db_reads_while_recovering_all_commands.js
index 0f908cdd50a..9beef7db0af 100644
--- a/jstests/replsets/db_reads_while_recovering_all_commands.js
+++ b/jstests/replsets/db_reads_while_recovering_all_commands.js
@@ -106,6 +106,8 @@ const allCommands = {
_shardsvrJoinMigrations: {skip: isAnInternalCommand},
_shardsvrMergeAllChunksOnShard: {skip: isPrimaryOnly},
_shardsvrMovePrimary: {skip: isPrimaryOnly},
+ _shardsvrMovePrimaryEnterCriticalSection: {skip: isPrimaryOnly},
+ _shardsvrMovePrimaryExitCriticalSection: {skip: isPrimaryOnly},
_shardsvrMoveRange: {skip: isPrimaryOnly},
_shardsvrRenameCollection: {skip: isPrimaryOnly},
_shardsvrRenameCollectionParticipant: {skip: isAnInternalCommand},
diff --git a/jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js b/jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js
index 2d70311da2b..103869f3042 100644
--- a/jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js
+++ b/jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js
@@ -301,6 +301,8 @@ export const TenantMigrationConcurrentWriteUtil = {
_shardsvrRegisterIndex: {skip: isOnlySupportedOnShardedCluster},
_shardsvrDropIndexCatalogEntryParticipant: {skip: isOnlySupportedOnShardedCluster},
_shardsvrMovePrimary: {skip: isNotRunOnUserDatabase},
+ _shardsvrMovePrimaryEnterCriticalSection: {skip: isNotRunOnUserDatabase},
+ _shardsvrMovePrimaryExitCriticalSection: {skip: isNotRunOnUserDatabase},
_shardsvrSetAllowMigrations: {skip: isOnlySupportedOnShardedCluster},
_shardsvrRenameCollection: {skip: isOnlySupportedOnShardedCluster},
_shardsvrRenameIndexMetadata: {skip: isOnlySupportedOnShardedCluster},