@@ -2,10 +2,6 @@ description: "poc-retryable-writes"
2
2
3
3
schemaVersion : " 1.0"
4
4
5
- runOnRequirements :
6
- - minServerVersion : " 3.6"
7
- topologies : [ replicaset ]
8
-
9
5
createEntities :
10
6
- client :
11
7
id : &client0 client0
@@ -42,6 +38,9 @@ initialData:
42
38
43
39
tests :
44
40
- description : " FindOneAndUpdate is committed on first attempt"
41
+ runOnRequirements : &onPrimaryTransactionalWrite_requirements
42
+ - minServerVersion : " 3.6"
43
+ topologies : [ replicaset ]
45
44
operations :
46
45
- name : failPoint
47
46
object : testRunner
65
64
- { _id: 2, x: 22 }
66
65
67
66
- description : " FindOneAndUpdate is not committed on first attempt"
67
+ runOnRequirements : *onPrimaryTransactionalWrite_requirements
68
68
operations :
69
69
- name : failPoint
70
70
object : testRunner
89
89
- { _id: 2, x: 22 }
90
90
91
91
- description : " FindOneAndUpdate is never committed"
92
+ runOnRequirements : *onPrimaryTransactionalWrite_requirements
92
93
operations :
93
94
- name : failPoint
94
95
object : testRunner
@@ -117,9 +118,7 @@ tests:
117
118
- minServerVersion : " 4.0"
118
119
topologies : [ replicaset ]
119
120
- minServerVersion : " 4.1.7"
120
- # Original test uses "sharded", but retryable writes requires a sharded
121
- # cluster backed by replica sets
122
- topologies : [ sharded-replicaset ]
121
+ topologies : [ sharded ]
123
122
operations :
124
123
- name : failPoint
125
124
object : testRunner
@@ -192,6 +191,7 @@ tests:
192
191
mode : { times: 2 }
193
192
data :
194
193
failCommands : [ insert ]
194
+ errorLabels : [ RetryableWriteError ]
195
195
writeConcernError :
196
196
code : 91 # ShutdownInProgress
197
197
errmsg : " Replication is being shut down"
0 commit comments