|
3 | 3 | "tests": [ |
4 | 4 | { |
5 | 5 | "description": "abort", |
6 | | - "skipReason": "Server must implement abortTransaction", |
7 | 6 | "operations": [ |
8 | 7 | { |
9 | 8 | "name": "startTransaction", |
|
66 | 65 | ], |
67 | 66 | "ordered": true, |
68 | 67 | "lsid": "session0", |
69 | | - "txnNumber": 1, |
| 68 | + "txnNumber": { |
| 69 | + "$numberLong": "1" |
| 70 | + }, |
70 | 71 | "stmtId": 0, |
71 | 72 | "autocommit": false, |
72 | 73 | "writeConcern": null |
|
80 | 81 | "command": { |
81 | 82 | "abortTransaction": 1, |
82 | 83 | "lsid": "session0", |
83 | | - "txnNumber": 1, |
| 84 | + "txnNumber": { |
| 85 | + "$numberLong": "1" |
| 86 | + }, |
84 | 87 | "stmtId": 1, |
85 | 88 | "writeConcern": null |
86 | 89 | }, |
|
99 | 102 | ], |
100 | 103 | "ordered": true, |
101 | 104 | "lsid": "session0", |
102 | | - "txnNumber": 2, |
| 105 | + "txnNumber": { |
| 106 | + "$numberLong": "2" |
| 107 | + }, |
103 | 108 | "stmtId": 0, |
104 | 109 | "autocommit": false, |
105 | 110 | "writeConcern": null |
|
113 | 118 | "command": { |
114 | 119 | "abortTransaction": 1, |
115 | 120 | "lsid": "session0", |
116 | | - "txnNumber": 2, |
| 121 | + "txnNumber": { |
| 122 | + "$numberLong": "2" |
| 123 | + }, |
117 | 124 | "stmtId": 1, |
118 | 125 | "writeConcern": null |
119 | 126 | }, |
|
130 | 137 | }, |
131 | 138 | { |
132 | 139 | "description": "implicit abort", |
133 | | - "skipReason": "Server must implement abortTransaction", |
134 | 140 | "operations": [ |
135 | 141 | { |
136 | 142 | "name": "startTransaction", |
|
163 | 169 | ], |
164 | 170 | "ordered": true, |
165 | 171 | "lsid": "session0", |
166 | | - "txnNumber": 1, |
| 172 | + "txnNumber": { |
| 173 | + "$numberLong": "1" |
| 174 | + }, |
167 | 175 | "stmtId": 0, |
168 | 176 | "autocommit": false, |
169 | 177 | "writeConcern": null |
|
177 | 185 | "command": { |
178 | 186 | "abortTransaction": 1, |
179 | 187 | "lsid": "session0", |
180 | | - "txnNumber": 1, |
| 188 | + "txnNumber": { |
| 189 | + "$numberLong": "1" |
| 190 | + }, |
181 | 191 | "stmtId": 1, |
182 | 192 | "writeConcern": null |
183 | 193 | }, |
|
194 | 204 | }, |
195 | 205 | { |
196 | 206 | "description": "two aborts", |
197 | | - "skipReason": "Server must implement abortTransaction", |
198 | 207 | "operations": [ |
199 | 208 | { |
200 | 209 | "name": "startTransaction", |
|
226 | 235 | "session": "session0" |
227 | 236 | }, |
228 | 237 | "result": { |
229 | | - "errorContains": "no such transaction" |
| 238 | + "errorContains": "no transaction started" |
230 | 239 | } |
231 | 240 | } |
232 | 241 | ], |
|
242 | 251 | ], |
243 | 252 | "ordered": true, |
244 | 253 | "lsid": "session0", |
245 | | - "txnNumber": 1, |
| 254 | + "txnNumber": { |
| 255 | + "$numberLong": "1" |
| 256 | + }, |
246 | 257 | "stmtId": 0, |
247 | 258 | "autocommit": false, |
248 | 259 | "writeConcern": null |
|
256 | 267 | "command": { |
257 | 268 | "abortTransaction": 1, |
258 | 269 | "lsid": "session0", |
259 | | - "txnNumber": 1, |
| 270 | + "txnNumber": { |
| 271 | + "$numberLong": "1" |
| 272 | + }, |
260 | 273 | "stmtId": 1, |
261 | 274 | "writeConcern": null |
262 | 275 | }, |
263 | 276 | "command_name": "abortTransaction", |
264 | 277 | "database_name": "admin" |
265 | 278 | } |
266 | | - }, |
267 | | - { |
268 | | - "command": { |
269 | | - "abortTransaction": 1, |
270 | | - "lsid": "session0", |
271 | | - "txnNumber": 1, |
272 | | - "stmtId": 1, |
273 | | - "writeConcern": null |
274 | | - }, |
275 | | - "command_name": "abortTransaction", |
276 | | - "database_name": "admin" |
277 | 279 | } |
278 | 280 | ], |
279 | 281 | "outcome": { |
|
291 | 293 | "session": "session0" |
292 | 294 | }, |
293 | 295 | "result": { |
294 | | - "errorContains": "no transaction in progress" |
| 296 | + "errorContains": "no transaction started" |
295 | 297 | } |
296 | 298 | } |
297 | 299 | ], |
|
304 | 306 | }, |
305 | 307 | { |
306 | 308 | "description": "commit after abort", |
307 | | - "skipReason": "Server must implement abortTransaction", |
308 | 309 | "operations": [ |
309 | 310 | { |
310 | 311 | "name": "startTransaction", |
|
336 | 337 | "session": "session0" |
337 | 338 | }, |
338 | 339 | "result": { |
339 | | - "errorContains": "no transaction in progress" |
| 340 | + "errorContains": "no transaction started" |
340 | 341 | } |
341 | 342 | } |
342 | 343 | ], |
|
352 | 353 | ], |
353 | 354 | "ordered": true, |
354 | 355 | "lsid": "session0", |
355 | | - "txnNumber": 1, |
| 356 | + "txnNumber": { |
| 357 | + "$numberLong": "1" |
| 358 | + }, |
356 | 359 | "stmtId": 0, |
357 | 360 | "autocommit": false, |
358 | 361 | "writeConcern": null |
|
366 | 369 | "command": { |
367 | 370 | "abortTransaction": 1, |
368 | 371 | "lsid": "session0", |
369 | | - "txnNumber": 1, |
| 372 | + "txnNumber": { |
| 373 | + "$numberLong": "1" |
| 374 | + }, |
370 | 375 | "stmtId": 1, |
371 | 376 | "writeConcern": null |
372 | 377 | }, |
|
0 commit comments