| 1 |
{ |
| 2 |
"runOn": [ |
| 3 |
{ |
| 4 |
"minServerVersion": "4.0", |
| 5 |
"topology": [ |
| 6 |
"single", |
| 7 |
"replicaset" |
| 8 |
] |
| 9 |
}, |
| 10 |
{ |
| 11 |
"minServerVersion": "4.1.7", |
| 12 |
"topology": [ |
| 13 |
"sharded", |
| 14 |
"load-balanced" |
| 15 |
] |
| 16 |
} |
| 17 |
], |
| 18 |
"database_name": "retryable-reads-tests", |
| 19 |
"collection_name": "coll", |
| 20 |
"data": [], |
| 21 |
"tests": [ |
| 22 |
{ |
| 23 |
"description": "ListIndexNames succeeds on first attempt", |
| 24 |
"operations": [ |
| 25 |
{ |
| 26 |
"name": "listIndexNames", |
| 27 |
"object": "collection" |
| 28 |
} |
| 29 |
], |
| 30 |
"expectations": [ |
| 31 |
{ |
| 32 |
"command_started_event": { |
| 33 |
"command": { |
| 34 |
"listIndexes": "coll" |
| 35 |
}, |
| 36 |
"database_name": "retryable-reads-tests" |
| 37 |
} |
| 38 |
} |
| 39 |
] |
| 40 |
}, |
| 41 |
{ |
| 42 |
"description": "ListIndexNames succeeds on second attempt", |
| 43 |
"failPoint": { |
| 44 |
"configureFailPoint": "failCommand", |
| 45 |
"mode": { |
| 46 |
"times": 1 |
| 47 |
}, |
| 48 |
"data": { |
| 49 |
"failCommands": [ |
| 50 |
"listIndexes" |
| 51 |
], |
| 52 |
"closeConnection": true |
| 53 |
} |
| 54 |
}, |
| 55 |
"operations": [ |
| 56 |
{ |
| 57 |
"name": "listIndexNames", |
| 58 |
"object": "collection" |
| 59 |
} |
| 60 |
], |
| 61 |
"expectations": [ |
| 62 |
{ |
| 63 |
"command_started_event": { |
| 64 |
"command": { |
| 65 |
"listIndexes": "coll" |
| 66 |
}, |
| 67 |
"database_name": "retryable-reads-tests" |
| 68 |
} |
| 69 |
}, |
| 70 |
{ |
| 71 |
"command_started_event": { |
| 72 |
"command": { |
| 73 |
"listIndexes": "coll" |
| 74 |
}, |
| 75 |
"database_name": "retryable-reads-tests" |
| 76 |
} |
| 77 |
} |
| 78 |
] |
| 79 |
}, |
| 80 |
{ |
| 81 |
"description": "ListIndexNames fails on first attempt", |
| 82 |
"clientOptions": { |
| 83 |
"retryReads": false |
| 84 |
}, |
| 85 |
"failPoint": { |
| 86 |
"configureFailPoint": "failCommand", |
| 87 |
"mode": { |
| 88 |
"times": 1 |
| 89 |
}, |
| 90 |
"data": { |
| 91 |
"failCommands": [ |
| 92 |
"listIndexes" |
| 93 |
], |
| 94 |
"closeConnection": true |
| 95 |
} |
| 96 |
}, |
| 97 |
"operations": [ |
| 98 |
{ |
| 99 |
"name": "listIndexNames", |
| 100 |
"object": "collection", |
| 101 |
"error": true |
| 102 |
} |
| 103 |
], |
| 104 |
"expectations": [ |
| 105 |
{ |
| 106 |
"command_started_event": { |
| 107 |
"command": { |
| 108 |
"listIndexes": "coll" |
| 109 |
}, |
| 110 |
"database_name": "retryable-reads-tests" |
| 111 |
} |
| 112 |
} |
| 113 |
] |
| 114 |
}, |
| 115 |
{ |
| 116 |
"description": "ListIndexNames fails on second attempt", |
| 117 |
"failPoint": { |
| 118 |
"configureFailPoint": "failCommand", |
| 119 |
"mode": { |
| 120 |
"times": 2 |
| 121 |
}, |
| 122 |
"data": { |
| 123 |
"failCommands": [ |
| 124 |
"listIndexes" |
| 125 |
], |
| 126 |
"closeConnection": true |
| 127 |
} |
| 128 |
}, |
| 129 |
"operations": [ |
| 130 |
{ |
| 131 |
"name": "listIndexNames", |
| 132 |
"object": "collection", |
| 133 |
"error": true |
| 134 |
} |
| 135 |
], |
| 136 |
"expectations": [ |
| 137 |
{ |
| 138 |
"command_started_event": { |
| 139 |
"command": { |
| 140 |
"listIndexes": "coll" |
| 141 |
}, |
| 142 |
"database_name": "retryable-reads-tests" |
| 143 |
} |
| 144 |
}, |
| 145 |
{ |
| 146 |
"command_started_event": { |
| 147 |
"command": { |
| 148 |
"listIndexes": "coll" |
| 149 |
}, |
| 150 |
"database_name": "retryable-reads-tests" |
| 151 |
} |
| 152 |
} |
| 153 |
] |
| 154 |
} |
| 155 |
] |
| 156 |
} |