| 1 |
runOn: |
| 2 |
- |
| 3 |
minServerVersion: "4.0" |
| 4 |
topology: ["single", "replicaset"] |
| 5 |
- |
| 6 |
minServerVersion: "4.1.7" |
| 7 |
topology: ["sharded", "load-balanced"] |
| 8 |
|
| 9 |
database_name: &database_name "retryable-reads-tests" |
| 10 |
collection_name: &collection_name "coll" |
| 11 |
|
| 12 |
data: [] |
| 13 |
|
| 14 |
tests: |
| 15 |
- |
| 16 |
description: "ListDatabaseObjects succeeds on first attempt" |
| 17 |
operations: |
| 18 |
- &retryable_operation |
| 19 |
name: listDatabaseObjects |
| 20 |
object: client |
| 21 |
expectations: |
| 22 |
- &retryable_command_started_event |
| 23 |
command_started_event: |
| 24 |
command: |
| 25 |
listDatabases: 1 |
| 26 |
- |
| 27 |
description: "ListDatabaseObjects succeeds on second attempt" |
| 28 |
failPoint: &failCommand_failPoint |
| 29 |
configureFailPoint: failCommand |
| 30 |
mode: { times: 1 } |
| 31 |
data: |
| 32 |
failCommands: |
| 33 |
- listDatabases |
| 34 |
closeConnection: true |
| 35 |
operations: [*retryable_operation] |
| 36 |
expectations: |
| 37 |
- *retryable_command_started_event |
| 38 |
- *retryable_command_started_event |
| 39 |
- |
| 40 |
description: "ListDatabaseObjects fails on first attempt" |
| 41 |
clientOptions: |
| 42 |
retryReads: false |
| 43 |
failPoint: *failCommand_failPoint |
| 44 |
operations: |
| 45 |
- &retryable_operation_fails |
| 46 |
<<: *retryable_operation |
| 47 |
error: true |
| 48 |
expectations: |
| 49 |
- *retryable_command_started_event |
| 50 |
- |
| 51 |
description: "ListDatabaseObjects fails on second attempt" |
| 52 |
failPoint: |
| 53 |
<<: *failCommand_failPoint |
| 54 |
mode: { times: 2 } |
| 55 |
operations: [*retryable_operation_fails] |
| 56 |
expectations: |
| 57 |
- *retryable_command_started_event |
| 58 |
- *retryable_command_started_event |
| 59 |
|