|
3 | 3 | "schemaVersion": "1.9",
|
4 | 4 | "runOnRequirements": [
|
5 | 5 | {
|
6 |
| - "minServerVersion": "4.9" |
| 6 | + "minServerVersion": "4.9", |
| 7 | + "topologies": [ |
| 8 | + "single", |
| 9 | + "replicaset", |
| 10 | + "sharded-replicaset", |
| 11 | + "sharded" |
| 12 | + ], |
| 13 | + "serverless": "forbid" |
7 | 14 | }
|
8 | 15 | ],
|
9 | 16 | "createEntities": [
|
|
45 | 52 | ],
|
46 | 53 | "appName": "reduceMaxTimeMSTest",
|
47 | 54 | "blockConnection": true,
|
48 |
| - "blockTimeMS": 20 |
| 55 | + "blockTimeMS": 50 |
49 | 56 | }
|
50 | 57 | }
|
51 | 58 | }
|
|
61 | 68 | "useMultipleMongoses": false,
|
62 | 69 | "uriOptions": {
|
63 | 70 | "appName": "reduceMaxTimeMSTest",
|
64 |
| - "w": 1 |
| 71 | + "w": 1, |
| 72 | + "timeoutMS": 500, |
| 73 | + "heartbeatFrequencyMS": 500 |
65 | 74 | },
|
66 | 75 | "observeEvents": [
|
67 | 76 | "commandStartedEvent"
|
|
75 | 84 | "databaseName": "test"
|
76 | 85 | }
|
77 | 86 | },
|
78 |
| - { |
79 |
| - "collection": { |
80 |
| - "id": "regularCollection", |
81 |
| - "database": "database", |
82 |
| - "collectionName": "coll" |
83 |
| - } |
84 |
| - }, |
85 | 87 | {
|
86 | 88 | "collection": {
|
87 | 89 | "id": "timeoutCollection",
|
88 | 90 | "database": "database",
|
89 |
| - "collectionName": "timeoutColl", |
90 |
| - "collectionOptions": { |
91 |
| - "timeoutMS": 60 |
92 |
| - } |
| 91 | + "collectionName": "timeoutColl" |
93 | 92 | }
|
94 | 93 | }
|
95 | 94 | ]
|
96 | 95 | }
|
97 | 96 | },
|
98 | 97 | {
|
99 | 98 | "name": "insertOne",
|
100 |
| - "object": "regularCollection", |
| 99 | + "object": "timeoutCollection", |
101 | 100 | "arguments": {
|
102 | 101 | "document": {
|
103 | 102 | "_id": 1
|
104 |
| - } |
| 103 | + }, |
| 104 | + "timeoutMS": 100000 |
| 105 | + } |
| 106 | + }, |
| 107 | + { |
| 108 | + "name": "wait", |
| 109 | + "object": "testRunner", |
| 110 | + "arguments": { |
| 111 | + "ms": 1000 |
105 | 112 | }
|
106 | 113 | },
|
107 | 114 | {
|
|
123 | 130 | "commandName": "insert",
|
124 | 131 | "databaseName": "test",
|
125 | 132 | "command": {
|
126 |
| - "insert": "coll", |
127 |
| - "maxTimeMS": { |
128 |
| - "$$exists": false |
129 |
| - } |
| 133 | + "insert": "timeoutColl" |
130 | 134 | }
|
131 | 135 | }
|
132 | 136 | },
|
|
137 | 141 | "command": {
|
138 | 142 | "insert": "timeoutColl",
|
139 | 143 | "maxTimeMS": {
|
140 |
| - "$$lte": 60 |
| 144 | + "$$lte": 450 |
141 | 145 | }
|
142 | 146 | }
|
143 | 147 | }
|
|
164 | 168 | ],
|
165 | 169 | "appName": "rttTooHighTest",
|
166 | 170 | "blockConnection": true,
|
167 |
| - "blockTimeMS": 20 |
| 171 | + "blockTimeMS": 50 |
168 | 172 | }
|
169 | 173 | }
|
170 | 174 | }
|
|
180 | 184 | "useMultipleMongoses": false,
|
181 | 185 | "uriOptions": {
|
182 | 186 | "appName": "rttTooHighTest",
|
183 |
| - "w": 1 |
| 187 | + "w": 1, |
| 188 | + "timeoutMS": 10, |
| 189 | + "heartbeatFrequencyMS": 500 |
184 | 190 | },
|
185 | 191 | "observeEvents": [
|
186 | 192 | "commandStartedEvent"
|
|
196 | 202 | },
|
197 | 203 | {
|
198 | 204 | "collection": {
|
199 |
| - "id": "regularCollection", |
| 205 | + "id": "timeoutCollection", |
200 | 206 | "database": "database",
|
201 |
| - "collectionName": "coll" |
| 207 | + "collectionName": "timeoutColl" |
| 208 | + } |
| 209 | + } |
| 210 | + ] |
| 211 | + } |
| 212 | + }, |
| 213 | + { |
| 214 | + "name": "insertOne", |
| 215 | + "object": "timeoutCollection", |
| 216 | + "arguments": { |
| 217 | + "document": { |
| 218 | + "_id": 1 |
| 219 | + }, |
| 220 | + "timeoutMS": 100000 |
| 221 | + } |
| 222 | + }, |
| 223 | + { |
| 224 | + "name": "wait", |
| 225 | + "object": "testRunner", |
| 226 | + "arguments": { |
| 227 | + "ms": 1000 |
| 228 | + } |
| 229 | + }, |
| 230 | + { |
| 231 | + "name": "insertOne", |
| 232 | + "object": "timeoutCollection", |
| 233 | + "arguments": { |
| 234 | + "document": { |
| 235 | + "_id": 2 |
| 236 | + } |
| 237 | + }, |
| 238 | + "expectError": { |
| 239 | + "isTimeoutError": true |
| 240 | + } |
| 241 | + }, |
| 242 | + { |
| 243 | + "name": "insertOne", |
| 244 | + "object": "timeoutCollection", |
| 245 | + "arguments": { |
| 246 | + "document": { |
| 247 | + "_id": 3 |
| 248 | + } |
| 249 | + }, |
| 250 | + "expectError": { |
| 251 | + "isTimeoutError": true |
| 252 | + } |
| 253 | + }, |
| 254 | + { |
| 255 | + "name": "insertOne", |
| 256 | + "object": "timeoutCollection", |
| 257 | + "arguments": { |
| 258 | + "document": { |
| 259 | + "_id": 4 |
| 260 | + } |
| 261 | + }, |
| 262 | + "expectError": { |
| 263 | + "isTimeoutError": true |
| 264 | + } |
| 265 | + } |
| 266 | + ], |
| 267 | + "expectEvents": [ |
| 268 | + { |
| 269 | + "client": "client", |
| 270 | + "events": [ |
| 271 | + { |
| 272 | + "commandStartedEvent": { |
| 273 | + "commandName": "insert", |
| 274 | + "databaseName": "test", |
| 275 | + "command": { |
| 276 | + "insert": "timeoutColl" |
| 277 | + } |
| 278 | + } |
| 279 | + } |
| 280 | + ] |
| 281 | + } |
| 282 | + ] |
| 283 | + }, |
| 284 | + { |
| 285 | + "description": "short-circuit is not enabled with only 1 RTT measurement", |
| 286 | + "operations": [ |
| 287 | + { |
| 288 | + "name": "failPoint", |
| 289 | + "object": "testRunner", |
| 290 | + "arguments": { |
| 291 | + "client": "failPointClient", |
| 292 | + "failPoint": { |
| 293 | + "configureFailPoint": "failCommand", |
| 294 | + "mode": "alwaysOn", |
| 295 | + "data": { |
| 296 | + "failCommands": [ |
| 297 | + "hello", |
| 298 | + "isMaster" |
| 299 | + ], |
| 300 | + "appName": "reduceMaxTimeMSTest", |
| 301 | + "blockConnection": true, |
| 302 | + "blockTimeMS": 100 |
| 303 | + } |
| 304 | + } |
| 305 | + } |
| 306 | + }, |
| 307 | + { |
| 308 | + "name": "createEntities", |
| 309 | + "object": "testRunner", |
| 310 | + "arguments": { |
| 311 | + "entities": [ |
| 312 | + { |
| 313 | + "client": { |
| 314 | + "id": "client", |
| 315 | + "useMultipleMongoses": false, |
| 316 | + "uriOptions": { |
| 317 | + "appName": "reduceMaxTimeMSTest", |
| 318 | + "w": 1, |
| 319 | + "timeoutMS": 90, |
| 320 | + "heartbeatFrequencyMS": 100000 |
| 321 | + }, |
| 322 | + "observeEvents": [ |
| 323 | + "commandStartedEvent" |
| 324 | + ] |
| 325 | + } |
| 326 | + }, |
| 327 | + { |
| 328 | + "database": { |
| 329 | + "id": "database", |
| 330 | + "client": "client", |
| 331 | + "databaseName": "test" |
202 | 332 | }
|
203 | 333 | },
|
204 | 334 | {
|
205 | 335 | "collection": {
|
206 | 336 | "id": "timeoutCollection",
|
207 | 337 | "database": "database",
|
208 |
| - "collectionName": "timeoutColl", |
209 |
| - "collectionOptions": { |
210 |
| - "timeoutMS": 2 |
211 |
| - } |
| 338 | + "collectionName": "timeoutColl" |
212 | 339 | }
|
213 | 340 | }
|
214 | 341 | ]
|
215 | 342 | }
|
216 | 343 | },
|
217 | 344 | {
|
218 | 345 | "name": "insertOne",
|
219 |
| - "object": "regularCollection", |
| 346 | + "object": "timeoutCollection", |
220 | 347 | "arguments": {
|
221 | 348 | "document": {
|
222 | 349 | "_id": 1
|
223 |
| - } |
| 350 | + }, |
| 351 | + "timeoutMS": 100000 |
224 | 352 | }
|
225 | 353 | },
|
226 | 354 | {
|
|
230 | 358 | "document": {
|
231 | 359 | "_id": 2
|
232 | 360 | }
|
233 |
| - }, |
234 |
| - "expectError": { |
235 |
| - "isTimeoutError": true |
236 | 361 | }
|
237 | 362 | }
|
238 | 363 | ],
|
|
245 | 370 | "commandName": "insert",
|
246 | 371 | "databaseName": "test",
|
247 | 372 | "command": {
|
248 |
| - "insert": "coll", |
| 373 | + "insert": "timeoutColl" |
| 374 | + } |
| 375 | + } |
| 376 | + }, |
| 377 | + { |
| 378 | + "commandStartedEvent": { |
| 379 | + "commandName": "insert", |
| 380 | + "databaseName": "test", |
| 381 | + "command": { |
| 382 | + "insert": "timeoutColl", |
249 | 383 | "maxTimeMS": {
|
250 |
| - "$$exists": false |
| 384 | + "$$lte": 450 |
251 | 385 | }
|
252 | 386 | }
|
253 | 387 | }
|
|
0 commit comments