diff options
Diffstat (limited to 'jstests/sharding/move_primary_with_writes.js')
-rw-r--r-- | jstests/sharding/move_primary_with_writes.js | 23 |
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}}]}, |