| 1 |
runOn: |
| 2 |
- |
| 3 |
minServerVersion: "4.1.11" |
| 4 |
|
| 5 |
database_name: &database_name "retryable-reads-tests" |
| 6 |
collection_name: &collection_name "coll" |
| 7 |
|
| 8 |
data: |
| 9 |
- {_id: 1, x: 11} |
| 10 |
- {_id: 2, x: 22} |
| 11 |
- {_id: 3, x: 33} |
| 12 |
|
| 13 |
tests: |
| 14 |
- |
| 15 |
description: "Aggregate with $merge does not retry" |
| 16 |
failPoint: |
| 17 |
configureFailPoint: failCommand |
| 18 |
mode: { times: 1 } |
| 19 |
data: |
| 20 |
failCommands: [aggregate] |
| 21 |
closeConnection: true |
| 22 |
operations: |
| 23 |
- |
| 24 |
object: collection |
| 25 |
name: aggregate |
| 26 |
arguments: |
| 27 |
pipeline: &pipeline |
| 28 |
- $match: {_id: {$gt: 1}} |
| 29 |
- $sort: {x: 1} |
| 30 |
- $merge: { into: "output-collection" } |
| 31 |
error: true |
| 32 |
expectations: |
| 33 |
- |
| 34 |
command_started_event: |
| 35 |
command: |
| 36 |
aggregate: *collection_name |
| 37 |
pipeline: *pipeline |
| 38 |
command_name: aggregate |
| 39 |
database_name: *database_name |