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