summaryrefslogtreecommitdiff
path: root/jstests/sharding/resharding_prohibited_commands.js
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2021-11-29 12:59:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-03 20:05:44 +0000
commit3242083daae059800badc55b6c4e050454fa6c70 (patch)
treeafaeea07469711ed8a667043896146692628d335 /jstests/sharding/resharding_prohibited_commands.js
parent6ef5da0c8cdce8a4398ad00ede82ffa674f4e62c (diff)
downloadmongo-3242083daae059800badc55b6c4e050454fa6c70.tar.gz
Revert "SERVER-60694 Move collMod to DDL coordinator infrastructure"
Diffstat (limited to 'jstests/sharding/resharding_prohibited_commands.js')
-rw-r--r--jstests/sharding/resharding_prohibited_commands.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/sharding/resharding_prohibited_commands.js b/jstests/sharding/resharding_prohibited_commands.js
index 6d49babf98f..6cbaf338ca5 100644
--- a/jstests/sharding/resharding_prohibited_commands.js
+++ b/jstests/sharding/resharding_prohibited_commands.js
@@ -33,9 +33,7 @@ const indexDroppedByTest = {
};
const prohibitedCommands = [
- // The collMod is serialized with the resharding command, so we explicitly add an timeout to the
- // command so that it doesn't get blocked and timeout the test.
- {collMod: collectionName, maxTimeMS: 5000},
+ {collMod: collectionName},
{createIndexes: collectionName, indexes: [{name: "idx1", key: indexCreatedByTest}]},
{dropIndexes: collectionName, index: indexDroppedByTest},
];
@@ -65,9 +63,8 @@ const assertCommandsSucceedAfterReshardingOpFinishes = (database) => {
const assertCommandsFailDuringReshardingOp = (database) => {
prohibitedCommands.forEach((command) => {
jsTest.log(`Testing that ${tojson(command)} fails during resharding operation`);
- assert.commandFailedWithCode(
- database.runCommand(command),
- [ErrorCodes.ReshardCollectionInProgress, ErrorCodes.MaxTimeMSExpired]);
+ assert.commandFailedWithCode(database.runCommand(command),
+ ErrorCodes.ReshardCollectionInProgress);
});
};