summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisha Tyulenev <misha.tyulenev@mongodb.com>2020-07-08 23:05:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-13 00:17:26 +0000
commite008f3f282f2a2fe55d6e03aecfe80e4cf452dba (patch)
treea1cf6d8a540efb5733c68269d9771fdfb4513cd8
parentae4c35cab8616eb1690150e352d417016ba25851 (diff)
downloadmongo-e008f3f282f2a2fe55d6e03aecfe80e4cf452dba.tar.gz
SERVER-49090 fail with MovePrimaryInProgress for aggregate and stages
(cherry picked from commit 0497a5fe38903ceb08c48050df476f0718b91733)
-rw-r--r--jstests/sharding/move_primary_with_writes.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/jstests/sharding/move_primary_with_writes.js b/jstests/sharding/move_primary_with_writes.js
index 11d9e8f6150..9cc940ee902 100644
--- a/jstests/sharding/move_primary_with_writes.js
+++ b/jstests/sharding/move_primary_with_writes.js
@@ -57,6 +57,29 @@ function buildCommands(collName) {
alwaysFail: false
},
{command: {delete: collName, deletes: [{q: {_id: 0}, limit: 1}]}, alwaysFail: false},
+ {
+ command: {
+ aggregate: collName,
+ cursor: {},
+ pipeline: [
+ {$match: {_id: 0}},
+ {
+ $merge: {
+ into: "testMergeColl",
+ on: "_id",
+ whenMatched: "replace",
+ whenNotMatched: "insert"
+ }
+ }
+ ]
+ },
+ alwaysFail: true
+ },
+ {
+ command:
+ {aggregate: collName, cursor: {}, pipeline: [{$match: {}}, {$out: "testOutColl"}]},
+ alwaysFail: true
+ },
{command: {create: "testCollection"}, alwaysFail: true},
{
command: {collMod: "viewOnFoo", viewOn: "unshardedFoo", pipeline: [{$match: {_id: 1}}]},