| 1 |
runOn: |
| 2 |
- |
| 3 |
minServerVersion: "4.0" |
| 4 |
topology: ["replicaset"] |
| 5 |
- |
| 6 |
minServerVersion: "4.1.8" |
| 7 |
topology: ["sharded"] |
| 8 |
|
| 9 |
database_name: &database_name "transaction-tests" |
| 10 |
collection_name: &collection_name "test" |
| 11 |
|
| 12 |
data: [] |
| 13 |
|
| 14 |
tests: |
| 15 |
- description: commitTransaction fails after two errors |
| 16 |
|
| 17 |
clientOptions: |
| 18 |
retryWrites: false |
| 19 |
|
| 20 |
failPoint: |
| 21 |
configureFailPoint: failCommand |
| 22 |
mode: { times: 2 } |
| 23 |
data: |
| 24 |
failCommands: ["commitTransaction"] |
| 25 |
closeConnection: true |
| 26 |
|
| 27 |
operations: |
| 28 |
- name: startTransaction |
| 29 |
object: session0 |
| 30 |
- name: insertOne |
| 31 |
object: collection |
| 32 |
arguments: |
| 33 |
session: session0 |
| 34 |
document: |
| 35 |
_id: 1 |
| 36 |
result: |
| 37 |
insertedId: 1 |
| 38 |
|
| 39 |
- name: commitTransaction |
| 40 |
object: session0 |
| 41 |
result: |
| 42 |
errorLabelsContain: ["RetryableWriteError", "UnknownTransactionCommitResult"] |
| 43 |
errorLabelsOmit: ["TransientTransactionError"] |
| 44 |
|
| 45 |
- name: commitTransaction |
| 46 |
object: session0 |
| 47 |
|
| 48 |
expectations: |
| 49 |
- command_started_event: |
| 50 |
command: |
| 51 |
insert: *collection_name |
| 52 |
documents: |
| 53 |
- _id: 1 |
| 54 |
ordered: true |
| 55 |
readConcern: |
| 56 |
lsid: session0 |
| 57 |
txnNumber: |
| 58 |
$numberLong: "1" |
| 59 |
startTransaction: true |
| 60 |
autocommit: false |
| 61 |
writeConcern: |
| 62 |
command_name: insert |
| 63 |
database_name: *database_name |
| 64 |
- command_started_event: |
| 65 |
command: |
| 66 |
commitTransaction: 1 |
| 67 |
lsid: session0 |
| 68 |
txnNumber: |
| 69 |
$numberLong: "1" |
| 70 |
startTransaction: |
| 71 |
autocommit: false |
| 72 |
writeConcern: |
| 73 |
command_name: commitTransaction |
| 74 |
database_name: admin |
| 75 |
- command_started_event: |
| 76 |
command: |
| 77 |
commitTransaction: 1 |
| 78 |
lsid: session0 |
| 79 |
txnNumber: |
| 80 |
$numberLong: "1" |
| 81 |
startTransaction: |
| 82 |
autocommit: false |
| 83 |
|
| 84 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 85 |
command_name: commitTransaction |
| 86 |
database_name: admin |
| 87 |
- command_started_event: |
| 88 |
command: |
| 89 |
commitTransaction: 1 |
| 90 |
lsid: session0 |
| 91 |
txnNumber: |
| 92 |
$numberLong: "1" |
| 93 |
startTransaction: |
| 94 |
autocommit: false |
| 95 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 96 |
command_name: commitTransaction |
| 97 |
database_name: admin |
| 98 |
|
| 99 |
outcome: |
| 100 |
collection: |
| 101 |
data: |
| 102 |
- _id: 1 |
| 103 |
|
| 104 |
- description: commitTransaction applies majority write concern on retries |
| 105 |
|
| 106 |
clientOptions: |
| 107 |
retryWrites: false |
| 108 |
|
| 109 |
failPoint: |
| 110 |
configureFailPoint: failCommand |
| 111 |
mode: { times: 2 } |
| 112 |
data: |
| 113 |
failCommands: ["commitTransaction"] |
| 114 |
closeConnection: true |
| 115 |
|
| 116 |
operations: |
| 117 |
- name: startTransaction |
| 118 |
object: session0 |
| 119 |
arguments: |
| 120 |
options: |
| 121 |
writeConcern: { w: 2, j: true, wtimeout: 5000 } |
| 122 |
- name: insertOne |
| 123 |
object: collection |
| 124 |
arguments: |
| 125 |
session: session0 |
| 126 |
document: |
| 127 |
_id: 1 |
| 128 |
result: |
| 129 |
insertedId: 1 |
| 130 |
|
| 131 |
- name: commitTransaction |
| 132 |
object: session0 |
| 133 |
result: |
| 134 |
errorLabelsContain: ["RetryableWriteError", "UnknownTransactionCommitResult"] |
| 135 |
errorLabelsOmit: ["TransientTransactionError"] |
| 136 |
|
| 137 |
- name: commitTransaction |
| 138 |
object: session0 |
| 139 |
|
| 140 |
expectations: |
| 141 |
- command_started_event: |
| 142 |
command: |
| 143 |
insert: *collection_name |
| 144 |
documents: |
| 145 |
- _id: 1 |
| 146 |
ordered: true |
| 147 |
readConcern: |
| 148 |
lsid: session0 |
| 149 |
txnNumber: |
| 150 |
$numberLong: "1" |
| 151 |
startTransaction: true |
| 152 |
autocommit: false |
| 153 |
writeConcern: |
| 154 |
command_name: insert |
| 155 |
database_name: *database_name |
| 156 |
- command_started_event: |
| 157 |
command: |
| 158 |
commitTransaction: 1 |
| 159 |
lsid: session0 |
| 160 |
txnNumber: |
| 161 |
$numberLong: "1" |
| 162 |
startTransaction: |
| 163 |
autocommit: false |
| 164 |
writeConcern: { w: 2, j: true, wtimeout: 5000 } |
| 165 |
command_name: commitTransaction |
| 166 |
database_name: admin |
| 167 |
- command_started_event: |
| 168 |
command: |
| 169 |
commitTransaction: 1 |
| 170 |
lsid: session0 |
| 171 |
txnNumber: |
| 172 |
$numberLong: "1" |
| 173 |
startTransaction: |
| 174 |
autocommit: false |
| 175 |
|
| 176 |
writeConcern: { w: majority, j: true, wtimeout: 5000 } |
| 177 |
command_name: commitTransaction |
| 178 |
database_name: admin |
| 179 |
- command_started_event: |
| 180 |
command: |
| 181 |
commitTransaction: 1 |
| 182 |
lsid: session0 |
| 183 |
txnNumber: |
| 184 |
$numberLong: "1" |
| 185 |
startTransaction: |
| 186 |
autocommit: false |
| 187 |
writeConcern: { w: majority, j: true, wtimeout: 5000 } |
| 188 |
command_name: commitTransaction |
| 189 |
database_name: admin |
| 190 |
|
| 191 |
outcome: |
| 192 |
collection: |
| 193 |
data: |
| 194 |
- _id: 1 |
| 195 |
|
| 196 |
- description: commitTransaction fails after Interrupted |
| 197 |
|
| 198 |
failPoint: |
| 199 |
configureFailPoint: failCommand |
| 200 |
mode: { times: 1 } |
| 201 |
data: |
| 202 |
failCommands: ["commitTransaction"] |
| 203 |
errorCode: 11601 |
| 204 |
closeConnection: false |
| 205 |
|
| 206 |
operations: |
| 207 |
- name: startTransaction |
| 208 |
object: session0 |
| 209 |
- name: insertOne |
| 210 |
object: collection |
| 211 |
arguments: |
| 212 |
session: session0 |
| 213 |
document: |
| 214 |
_id: 1 |
| 215 |
result: |
| 216 |
insertedId: 1 |
| 217 |
- name: commitTransaction |
| 218 |
object: session0 |
| 219 |
result: |
| 220 |
errorCodeName: Interrupted |
| 221 |
errorLabelsOmit: ["RetryableWriteError", "TransientTransactionError", "UnknownTransactionCommitResult"] |
| 222 |
|
| 223 |
expectations: |
| 224 |
- command_started_event: |
| 225 |
command: |
| 226 |
insert: *collection_name |
| 227 |
documents: |
| 228 |
- _id: 1 |
| 229 |
ordered: true |
| 230 |
readConcern: |
| 231 |
lsid: session0 |
| 232 |
txnNumber: |
| 233 |
$numberLong: "1" |
| 234 |
startTransaction: true |
| 235 |
autocommit: false |
| 236 |
writeConcern: |
| 237 |
command_name: insert |
| 238 |
database_name: *database_name |
| 239 |
- command_started_event: |
| 240 |
command: |
| 241 |
commitTransaction: 1 |
| 242 |
lsid: session0 |
| 243 |
txnNumber: |
| 244 |
$numberLong: "1" |
| 245 |
startTransaction: |
| 246 |
autocommit: false |
| 247 |
writeConcern: |
| 248 |
command_name: commitTransaction |
| 249 |
database_name: admin |
| 250 |
|
| 251 |
outcome: |
| 252 |
collection: |
| 253 |
data: [] |
| 254 |
|
| 255 |
- description: commitTransaction is not retried after UnsatisfiableWriteConcern error |
| 256 |
|
| 257 |
failPoint: |
| 258 |
configureFailPoint: failCommand |
| 259 |
mode: { times: 1 } |
| 260 |
data: |
| 261 |
failCommands: ["commitTransaction"] |
| 262 |
writeConcernError: |
| 263 |
code: 100 |
| 264 |
errmsg: Not enough data-bearing nodes |
| 265 |
|
| 266 |
operations: |
| 267 |
- name: startTransaction |
| 268 |
object: session0 |
| 269 |
arguments: |
| 270 |
options: |
| 271 |
writeConcern: |
| 272 |
w: majority |
| 273 |
- name: insertOne |
| 274 |
object: collection |
| 275 |
arguments: |
| 276 |
session: session0 |
| 277 |
document: |
| 278 |
_id: 1 |
| 279 |
result: |
| 280 |
insertedId: 1 |
| 281 |
- name: commitTransaction |
| 282 |
object: session0 |
| 283 |
result: |
| 284 |
errorLabelsOmit: ["RetryableWriteError", "TransientTransactionError", "UnknownTransactionCommitResult"] |
| 285 |
|
| 286 |
expectations: |
| 287 |
- command_started_event: |
| 288 |
command: |
| 289 |
insert: *collection_name |
| 290 |
documents: |
| 291 |
- _id: 1 |
| 292 |
ordered: true |
| 293 |
readConcern: |
| 294 |
lsid: session0 |
| 295 |
txnNumber: |
| 296 |
$numberLong: "1" |
| 297 |
startTransaction: true |
| 298 |
autocommit: false |
| 299 |
writeConcern: |
| 300 |
command_name: insert |
| 301 |
database_name: *database_name |
| 302 |
- command_started_event: |
| 303 |
command: |
| 304 |
commitTransaction: 1 |
| 305 |
lsid: session0 |
| 306 |
txnNumber: |
| 307 |
$numberLong: "1" |
| 308 |
startTransaction: |
| 309 |
autocommit: false |
| 310 |
writeConcern: |
| 311 |
w: majority |
| 312 |
command_name: commitTransaction |
| 313 |
database_name: admin |
| 314 |
|
| 315 |
outcome: |
| 316 |
collection: |
| 317 |
data: |
| 318 |
- _id: 1 |
| 319 |
|
| 320 |
- description: commitTransaction succeeds after connection error |
| 321 |
|
| 322 |
failPoint: |
| 323 |
configureFailPoint: failCommand |
| 324 |
mode: { times: 1 } |
| 325 |
data: |
| 326 |
failCommands: ["commitTransaction"] |
| 327 |
closeConnection: true |
| 328 |
|
| 329 |
operations: |
| 330 |
- name: startTransaction |
| 331 |
object: session0 |
| 332 |
- name: insertOne |
| 333 |
object: collection |
| 334 |
arguments: |
| 335 |
session: session0 |
| 336 |
document: |
| 337 |
_id: 1 |
| 338 |
result: |
| 339 |
insertedId: 1 |
| 340 |
- name: commitTransaction |
| 341 |
object: session0 |
| 342 |
|
| 343 |
expectations: |
| 344 |
- command_started_event: |
| 345 |
command: |
| 346 |
insert: *collection_name |
| 347 |
documents: |
| 348 |
- _id: 1 |
| 349 |
ordered: true |
| 350 |
readConcern: |
| 351 |
lsid: session0 |
| 352 |
txnNumber: |
| 353 |
$numberLong: "1" |
| 354 |
startTransaction: true |
| 355 |
autocommit: false |
| 356 |
writeConcern: |
| 357 |
command_name: insert |
| 358 |
database_name: *database_name |
| 359 |
- command_started_event: |
| 360 |
command: |
| 361 |
commitTransaction: 1 |
| 362 |
lsid: session0 |
| 363 |
txnNumber: |
| 364 |
$numberLong: "1" |
| 365 |
startTransaction: |
| 366 |
autocommit: false |
| 367 |
writeConcern: |
| 368 |
command_name: commitTransaction |
| 369 |
database_name: admin |
| 370 |
- command_started_event: |
| 371 |
command: |
| 372 |
commitTransaction: 1 |
| 373 |
lsid: session0 |
| 374 |
txnNumber: |
| 375 |
$numberLong: "1" |
| 376 |
startTransaction: |
| 377 |
autocommit: false |
| 378 |
|
| 379 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 380 |
command_name: commitTransaction |
| 381 |
database_name: admin |
| 382 |
|
| 383 |
outcome: |
| 384 |
collection: |
| 385 |
data: |
| 386 |
- _id: 1 |
| 387 |
|
| 388 |
- description: commitTransaction succeeds after NotWritablePrimary |
| 389 |
|
| 390 |
failPoint: |
| 391 |
configureFailPoint: failCommand |
| 392 |
mode: { times: 1 } |
| 393 |
data: |
| 394 |
failCommands: ["commitTransaction"] |
| 395 |
errorCode: 10107 |
| 396 |
errorLabels: ["RetryableWriteError"] |
| 397 |
closeConnection: false |
| 398 |
|
| 399 |
operations: |
| 400 |
- name: startTransaction |
| 401 |
object: session0 |
| 402 |
- name: insertOne |
| 403 |
object: collection |
| 404 |
arguments: |
| 405 |
session: session0 |
| 406 |
document: |
| 407 |
_id: 1 |
| 408 |
result: |
| 409 |
insertedId: 1 |
| 410 |
- name: commitTransaction |
| 411 |
object: session0 |
| 412 |
|
| 413 |
expectations: |
| 414 |
- command_started_event: |
| 415 |
command: |
| 416 |
insert: *collection_name |
| 417 |
documents: |
| 418 |
- _id: 1 |
| 419 |
ordered: true |
| 420 |
readConcern: |
| 421 |
lsid: session0 |
| 422 |
txnNumber: |
| 423 |
$numberLong: "1" |
| 424 |
startTransaction: true |
| 425 |
autocommit: false |
| 426 |
writeConcern: |
| 427 |
command_name: insert |
| 428 |
database_name: *database_name |
| 429 |
- command_started_event: |
| 430 |
command: |
| 431 |
commitTransaction: 1 |
| 432 |
lsid: session0 |
| 433 |
txnNumber: |
| 434 |
$numberLong: "1" |
| 435 |
startTransaction: |
| 436 |
autocommit: false |
| 437 |
writeConcern: |
| 438 |
command_name: commitTransaction |
| 439 |
database_name: admin |
| 440 |
- command_started_event: |
| 441 |
command: |
| 442 |
commitTransaction: 1 |
| 443 |
lsid: session0 |
| 444 |
txnNumber: |
| 445 |
$numberLong: "1" |
| 446 |
startTransaction: |
| 447 |
autocommit: false |
| 448 |
|
| 449 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 450 |
command_name: commitTransaction |
| 451 |
database_name: admin |
| 452 |
|
| 453 |
outcome: |
| 454 |
collection: |
| 455 |
data: |
| 456 |
- _id: 1 |
| 457 |
|
| 458 |
- description: commitTransaction succeeds after NotPrimaryOrSecondary |
| 459 |
|
| 460 |
failPoint: |
| 461 |
configureFailPoint: failCommand |
| 462 |
mode: { times: 1 } |
| 463 |
data: |
| 464 |
failCommands: ["commitTransaction"] |
| 465 |
errorCode: 13436 |
| 466 |
errorLabels: ["RetryableWriteError"] |
| 467 |
closeConnection: false |
| 468 |
|
| 469 |
operations: |
| 470 |
- name: startTransaction |
| 471 |
object: session0 |
| 472 |
- name: insertOne |
| 473 |
object: collection |
| 474 |
arguments: |
| 475 |
session: session0 |
| 476 |
document: |
| 477 |
_id: 1 |
| 478 |
result: |
| 479 |
insertedId: 1 |
| 480 |
- name: commitTransaction |
| 481 |
object: session0 |
| 482 |
|
| 483 |
expectations: |
| 484 |
- command_started_event: |
| 485 |
command: |
| 486 |
insert: *collection_name |
| 487 |
documents: |
| 488 |
- _id: 1 |
| 489 |
ordered: true |
| 490 |
readConcern: |
| 491 |
lsid: session0 |
| 492 |
txnNumber: |
| 493 |
$numberLong: "1" |
| 494 |
startTransaction: true |
| 495 |
autocommit: false |
| 496 |
writeConcern: |
| 497 |
command_name: insert |
| 498 |
database_name: *database_name |
| 499 |
- command_started_event: |
| 500 |
command: |
| 501 |
commitTransaction: 1 |
| 502 |
lsid: session0 |
| 503 |
txnNumber: |
| 504 |
$numberLong: "1" |
| 505 |
startTransaction: |
| 506 |
autocommit: false |
| 507 |
writeConcern: |
| 508 |
command_name: commitTransaction |
| 509 |
database_name: admin |
| 510 |
- command_started_event: |
| 511 |
command: |
| 512 |
commitTransaction: 1 |
| 513 |
lsid: session0 |
| 514 |
txnNumber: |
| 515 |
$numberLong: "1" |
| 516 |
startTransaction: |
| 517 |
autocommit: false |
| 518 |
|
| 519 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 520 |
command_name: commitTransaction |
| 521 |
database_name: admin |
| 522 |
|
| 523 |
outcome: |
| 524 |
collection: |
| 525 |
data: |
| 526 |
- _id: 1 |
| 527 |
|
| 528 |
- description: commitTransaction succeeds after NotPrimaryNoSecondaryOk |
| 529 |
|
| 530 |
failPoint: |
| 531 |
configureFailPoint: failCommand |
| 532 |
mode: { times: 1 } |
| 533 |
data: |
| 534 |
failCommands: ["commitTransaction"] |
| 535 |
errorCode: 13435 |
| 536 |
errorLabels: ["RetryableWriteError"] |
| 537 |
closeConnection: false |
| 538 |
|
| 539 |
operations: |
| 540 |
- name: startTransaction |
| 541 |
object: session0 |
| 542 |
- name: insertOne |
| 543 |
object: collection |
| 544 |
arguments: |
| 545 |
session: session0 |
| 546 |
document: |
| 547 |
_id: 1 |
| 548 |
result: |
| 549 |
insertedId: 1 |
| 550 |
- name: commitTransaction |
| 551 |
object: session0 |
| 552 |
|
| 553 |
expectations: |
| 554 |
- command_started_event: |
| 555 |
command: |
| 556 |
insert: *collection_name |
| 557 |
documents: |
| 558 |
- _id: 1 |
| 559 |
ordered: true |
| 560 |
readConcern: |
| 561 |
lsid: session0 |
| 562 |
txnNumber: |
| 563 |
$numberLong: "1" |
| 564 |
startTransaction: true |
| 565 |
autocommit: false |
| 566 |
writeConcern: |
| 567 |
command_name: insert |
| 568 |
database_name: *database_name |
| 569 |
- command_started_event: |
| 570 |
command: |
| 571 |
commitTransaction: 1 |
| 572 |
lsid: session0 |
| 573 |
txnNumber: |
| 574 |
$numberLong: "1" |
| 575 |
startTransaction: |
| 576 |
autocommit: false |
| 577 |
writeConcern: |
| 578 |
command_name: commitTransaction |
| 579 |
database_name: admin |
| 580 |
- command_started_event: |
| 581 |
command: |
| 582 |
commitTransaction: 1 |
| 583 |
lsid: session0 |
| 584 |
txnNumber: |
| 585 |
$numberLong: "1" |
| 586 |
startTransaction: |
| 587 |
autocommit: false |
| 588 |
|
| 589 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 590 |
command_name: commitTransaction |
| 591 |
database_name: admin |
| 592 |
|
| 593 |
outcome: |
| 594 |
collection: |
| 595 |
data: |
| 596 |
- _id: 1 |
| 597 |
|
| 598 |
- description: commitTransaction succeeds after InterruptedDueToReplStateChange |
| 599 |
|
| 600 |
failPoint: |
| 601 |
configureFailPoint: failCommand |
| 602 |
mode: { times: 1 } |
| 603 |
data: |
| 604 |
failCommands: ["commitTransaction"] |
| 605 |
errorCode: 11602 |
| 606 |
errorLabels: ["RetryableWriteError"] |
| 607 |
closeConnection: false |
| 608 |
|
| 609 |
operations: |
| 610 |
- name: startTransaction |
| 611 |
object: session0 |
| 612 |
- name: insertOne |
| 613 |
object: collection |
| 614 |
arguments: |
| 615 |
session: session0 |
| 616 |
document: |
| 617 |
_id: 1 |
| 618 |
result: |
| 619 |
insertedId: 1 |
| 620 |
- name: commitTransaction |
| 621 |
object: session0 |
| 622 |
|
| 623 |
expectations: |
| 624 |
- command_started_event: |
| 625 |
command: |
| 626 |
insert: *collection_name |
| 627 |
documents: |
| 628 |
- _id: 1 |
| 629 |
ordered: true |
| 630 |
readConcern: |
| 631 |
lsid: session0 |
| 632 |
txnNumber: |
| 633 |
$numberLong: "1" |
| 634 |
startTransaction: true |
| 635 |
autocommit: false |
| 636 |
writeConcern: |
| 637 |
command_name: insert |
| 638 |
database_name: *database_name |
| 639 |
- command_started_event: |
| 640 |
command: |
| 641 |
commitTransaction: 1 |
| 642 |
lsid: session0 |
| 643 |
txnNumber: |
| 644 |
$numberLong: "1" |
| 645 |
startTransaction: |
| 646 |
autocommit: false |
| 647 |
writeConcern: |
| 648 |
command_name: commitTransaction |
| 649 |
database_name: admin |
| 650 |
- command_started_event: |
| 651 |
command: |
| 652 |
commitTransaction: 1 |
| 653 |
lsid: session0 |
| 654 |
txnNumber: |
| 655 |
$numberLong: "1" |
| 656 |
startTransaction: |
| 657 |
autocommit: false |
| 658 |
|
| 659 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 660 |
command_name: commitTransaction |
| 661 |
database_name: admin |
| 662 |
|
| 663 |
outcome: |
| 664 |
collection: |
| 665 |
data: |
| 666 |
- _id: 1 |
| 667 |
|
| 668 |
- description: commitTransaction succeeds after InterruptedAtShutdown |
| 669 |
|
| 670 |
failPoint: |
| 671 |
configureFailPoint: failCommand |
| 672 |
mode: { times: 1 } |
| 673 |
data: |
| 674 |
failCommands: ["commitTransaction"] |
| 675 |
errorCode: 11600 |
| 676 |
errorLabels: ["RetryableWriteError"] |
| 677 |
closeConnection: false |
| 678 |
|
| 679 |
operations: |
| 680 |
- name: startTransaction |
| 681 |
object: session0 |
| 682 |
- name: insertOne |
| 683 |
object: collection |
| 684 |
arguments: |
| 685 |
session: session0 |
| 686 |
document: |
| 687 |
_id: 1 |
| 688 |
result: |
| 689 |
insertedId: 1 |
| 690 |
- name: commitTransaction |
| 691 |
object: session0 |
| 692 |
|
| 693 |
expectations: |
| 694 |
- command_started_event: |
| 695 |
command: |
| 696 |
insert: *collection_name |
| 697 |
documents: |
| 698 |
- _id: 1 |
| 699 |
ordered: true |
| 700 |
readConcern: |
| 701 |
lsid: session0 |
| 702 |
txnNumber: |
| 703 |
$numberLong: "1" |
| 704 |
startTransaction: true |
| 705 |
autocommit: false |
| 706 |
writeConcern: |
| 707 |
command_name: insert |
| 708 |
database_name: *database_name |
| 709 |
- command_started_event: |
| 710 |
command: |
| 711 |
commitTransaction: 1 |
| 712 |
lsid: session0 |
| 713 |
txnNumber: |
| 714 |
$numberLong: "1" |
| 715 |
startTransaction: |
| 716 |
autocommit: false |
| 717 |
writeConcern: |
| 718 |
command_name: commitTransaction |
| 719 |
database_name: admin |
| 720 |
- command_started_event: |
| 721 |
command: |
| 722 |
commitTransaction: 1 |
| 723 |
lsid: session0 |
| 724 |
txnNumber: |
| 725 |
$numberLong: "1" |
| 726 |
startTransaction: |
| 727 |
autocommit: false |
| 728 |
|
| 729 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 730 |
command_name: commitTransaction |
| 731 |
database_name: admin |
| 732 |
|
| 733 |
outcome: |
| 734 |
collection: |
| 735 |
data: |
| 736 |
- _id: 1 |
| 737 |
|
| 738 |
- description: commitTransaction succeeds after PrimarySteppedDown |
| 739 |
|
| 740 |
failPoint: |
| 741 |
configureFailPoint: failCommand |
| 742 |
mode: { times: 1 } |
| 743 |
data: |
| 744 |
failCommands: ["commitTransaction"] |
| 745 |
errorCode: 189 |
| 746 |
errorLabels: ["RetryableWriteError"] |
| 747 |
closeConnection: false |
| 748 |
|
| 749 |
operations: |
| 750 |
- name: startTransaction |
| 751 |
object: session0 |
| 752 |
- name: insertOne |
| 753 |
object: collection |
| 754 |
arguments: |
| 755 |
session: session0 |
| 756 |
document: |
| 757 |
_id: 1 |
| 758 |
result: |
| 759 |
insertedId: 1 |
| 760 |
- name: commitTransaction |
| 761 |
object: session0 |
| 762 |
|
| 763 |
expectations: |
| 764 |
- command_started_event: |
| 765 |
command: |
| 766 |
insert: *collection_name |
| 767 |
documents: |
| 768 |
- _id: 1 |
| 769 |
ordered: true |
| 770 |
readConcern: |
| 771 |
lsid: session0 |
| 772 |
txnNumber: |
| 773 |
$numberLong: "1" |
| 774 |
startTransaction: true |
| 775 |
autocommit: false |
| 776 |
writeConcern: |
| 777 |
command_name: insert |
| 778 |
database_name: *database_name |
| 779 |
- command_started_event: |
| 780 |
command: |
| 781 |
commitTransaction: 1 |
| 782 |
lsid: session0 |
| 783 |
txnNumber: |
| 784 |
$numberLong: "1" |
| 785 |
startTransaction: |
| 786 |
autocommit: false |
| 787 |
writeConcern: |
| 788 |
command_name: commitTransaction |
| 789 |
database_name: admin |
| 790 |
- command_started_event: |
| 791 |
command: |
| 792 |
commitTransaction: 1 |
| 793 |
lsid: session0 |
| 794 |
txnNumber: |
| 795 |
$numberLong: "1" |
| 796 |
startTransaction: |
| 797 |
autocommit: false |
| 798 |
|
| 799 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 800 |
command_name: commitTransaction |
| 801 |
database_name: admin |
| 802 |
|
| 803 |
outcome: |
| 804 |
collection: |
| 805 |
data: |
| 806 |
- _id: 1 |
| 807 |
|
| 808 |
- description: commitTransaction succeeds after ShutdownInProgress |
| 809 |
|
| 810 |
failPoint: |
| 811 |
configureFailPoint: failCommand |
| 812 |
mode: { times: 1 } |
| 813 |
data: |
| 814 |
failCommands: ["commitTransaction"] |
| 815 |
errorCode: 91 |
| 816 |
errorLabels: ["RetryableWriteError"] |
| 817 |
closeConnection: false |
| 818 |
|
| 819 |
operations: |
| 820 |
- name: startTransaction |
| 821 |
object: session0 |
| 822 |
- name: insertOne |
| 823 |
object: collection |
| 824 |
arguments: |
| 825 |
session: session0 |
| 826 |
document: |
| 827 |
_id: 1 |
| 828 |
result: |
| 829 |
insertedId: 1 |
| 830 |
- name: commitTransaction |
| 831 |
object: session0 |
| 832 |
|
| 833 |
expectations: |
| 834 |
- command_started_event: |
| 835 |
command: |
| 836 |
insert: *collection_name |
| 837 |
documents: |
| 838 |
- _id: 1 |
| 839 |
ordered: true |
| 840 |
readConcern: |
| 841 |
lsid: session0 |
| 842 |
txnNumber: |
| 843 |
$numberLong: "1" |
| 844 |
startTransaction: true |
| 845 |
autocommit: false |
| 846 |
writeConcern: |
| 847 |
command_name: insert |
| 848 |
database_name: *database_name |
| 849 |
- command_started_event: |
| 850 |
command: |
| 851 |
commitTransaction: 1 |
| 852 |
lsid: session0 |
| 853 |
txnNumber: |
| 854 |
$numberLong: "1" |
| 855 |
startTransaction: |
| 856 |
autocommit: false |
| 857 |
writeConcern: |
| 858 |
command_name: commitTransaction |
| 859 |
database_name: admin |
| 860 |
- command_started_event: |
| 861 |
command: |
| 862 |
commitTransaction: 1 |
| 863 |
lsid: session0 |
| 864 |
txnNumber: |
| 865 |
$numberLong: "1" |
| 866 |
startTransaction: |
| 867 |
autocommit: false |
| 868 |
|
| 869 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 870 |
command_name: commitTransaction |
| 871 |
database_name: admin |
| 872 |
|
| 873 |
outcome: |
| 874 |
collection: |
| 875 |
data: |
| 876 |
- _id: 1 |
| 877 |
|
| 878 |
- description: commitTransaction succeeds after HostNotFound |
| 879 |
|
| 880 |
failPoint: |
| 881 |
configureFailPoint: failCommand |
| 882 |
mode: { times: 1 } |
| 883 |
data: |
| 884 |
failCommands: ["commitTransaction"] |
| 885 |
errorCode: 7 |
| 886 |
errorLabels: ["RetryableWriteError"] |
| 887 |
closeConnection: false |
| 888 |
|
| 889 |
operations: |
| 890 |
- name: startTransaction |
| 891 |
object: session0 |
| 892 |
- name: insertOne |
| 893 |
object: collection |
| 894 |
arguments: |
| 895 |
session: session0 |
| 896 |
document: |
| 897 |
_id: 1 |
| 898 |
result: |
| 899 |
insertedId: 1 |
| 900 |
- name: commitTransaction |
| 901 |
object: session0 |
| 902 |
|
| 903 |
expectations: |
| 904 |
- command_started_event: |
| 905 |
command: |
| 906 |
insert: *collection_name |
| 907 |
documents: |
| 908 |
- _id: 1 |
| 909 |
ordered: true |
| 910 |
readConcern: |
| 911 |
lsid: session0 |
| 912 |
txnNumber: |
| 913 |
$numberLong: "1" |
| 914 |
startTransaction: true |
| 915 |
autocommit: false |
| 916 |
writeConcern: |
| 917 |
command_name: insert |
| 918 |
database_name: *database_name |
| 919 |
- command_started_event: |
| 920 |
command: |
| 921 |
commitTransaction: 1 |
| 922 |
lsid: session0 |
| 923 |
txnNumber: |
| 924 |
$numberLong: "1" |
| 925 |
startTransaction: |
| 926 |
autocommit: false |
| 927 |
writeConcern: |
| 928 |
command_name: commitTransaction |
| 929 |
database_name: admin |
| 930 |
- command_started_event: |
| 931 |
command: |
| 932 |
commitTransaction: 1 |
| 933 |
lsid: session0 |
| 934 |
txnNumber: |
| 935 |
$numberLong: "1" |
| 936 |
startTransaction: |
| 937 |
autocommit: false |
| 938 |
|
| 939 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 940 |
command_name: commitTransaction |
| 941 |
database_name: admin |
| 942 |
|
| 943 |
outcome: |
| 944 |
collection: |
| 945 |
data: |
| 946 |
- _id: 1 |
| 947 |
|
| 948 |
- description: commitTransaction succeeds after HostUnreachable |
| 949 |
|
| 950 |
failPoint: |
| 951 |
configureFailPoint: failCommand |
| 952 |
mode: { times: 1 } |
| 953 |
data: |
| 954 |
failCommands: ["commitTransaction"] |
| 955 |
errorCode: 6 |
| 956 |
errorLabels: ["RetryableWriteError"] |
| 957 |
closeConnection: false |
| 958 |
|
| 959 |
operations: |
| 960 |
- name: startTransaction |
| 961 |
object: session0 |
| 962 |
- name: insertOne |
| 963 |
object: collection |
| 964 |
arguments: |
| 965 |
session: session0 |
| 966 |
document: |
| 967 |
_id: 1 |
| 968 |
result: |
| 969 |
insertedId: 1 |
| 970 |
- name: commitTransaction |
| 971 |
object: session0 |
| 972 |
|
| 973 |
expectations: |
| 974 |
- command_started_event: |
| 975 |
command: |
| 976 |
insert: *collection_name |
| 977 |
documents: |
| 978 |
- _id: 1 |
| 979 |
ordered: true |
| 980 |
readConcern: |
| 981 |
lsid: session0 |
| 982 |
txnNumber: |
| 983 |
$numberLong: "1" |
| 984 |
startTransaction: true |
| 985 |
autocommit: false |
| 986 |
writeConcern: |
| 987 |
command_name: insert |
| 988 |
database_name: *database_name |
| 989 |
- command_started_event: |
| 990 |
command: |
| 991 |
commitTransaction: 1 |
| 992 |
lsid: session0 |
| 993 |
txnNumber: |
| 994 |
$numberLong: "1" |
| 995 |
startTransaction: |
| 996 |
autocommit: false |
| 997 |
writeConcern: |
| 998 |
command_name: commitTransaction |
| 999 |
database_name: admin |
| 1000 |
- command_started_event: |
| 1001 |
command: |
| 1002 |
commitTransaction: 1 |
| 1003 |
lsid: session0 |
| 1004 |
txnNumber: |
| 1005 |
$numberLong: "1" |
| 1006 |
startTransaction: |
| 1007 |
autocommit: false |
| 1008 |
|
| 1009 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1010 |
command_name: commitTransaction |
| 1011 |
database_name: admin |
| 1012 |
|
| 1013 |
outcome: |
| 1014 |
collection: |
| 1015 |
data: |
| 1016 |
- _id: 1 |
| 1017 |
|
| 1018 |
- description: commitTransaction succeeds after SocketException |
| 1019 |
|
| 1020 |
failPoint: |
| 1021 |
configureFailPoint: failCommand |
| 1022 |
mode: { times: 1 } |
| 1023 |
data: |
| 1024 |
failCommands: ["commitTransaction"] |
| 1025 |
errorCode: 9001 |
| 1026 |
errorLabels: ["RetryableWriteError"] |
| 1027 |
closeConnection: false |
| 1028 |
|
| 1029 |
operations: |
| 1030 |
- name: startTransaction |
| 1031 |
object: session0 |
| 1032 |
- name: insertOne |
| 1033 |
object: collection |
| 1034 |
arguments: |
| 1035 |
session: session0 |
| 1036 |
document: |
| 1037 |
_id: 1 |
| 1038 |
result: |
| 1039 |
insertedId: 1 |
| 1040 |
- name: commitTransaction |
| 1041 |
object: session0 |
| 1042 |
|
| 1043 |
expectations: |
| 1044 |
- command_started_event: |
| 1045 |
command: |
| 1046 |
insert: *collection_name |
| 1047 |
documents: |
| 1048 |
- _id: 1 |
| 1049 |
ordered: true |
| 1050 |
readConcern: |
| 1051 |
lsid: session0 |
| 1052 |
txnNumber: |
| 1053 |
$numberLong: "1" |
| 1054 |
startTransaction: true |
| 1055 |
autocommit: false |
| 1056 |
writeConcern: |
| 1057 |
command_name: insert |
| 1058 |
database_name: *database_name |
| 1059 |
- command_started_event: |
| 1060 |
command: |
| 1061 |
commitTransaction: 1 |
| 1062 |
lsid: session0 |
| 1063 |
txnNumber: |
| 1064 |
$numberLong: "1" |
| 1065 |
startTransaction: |
| 1066 |
autocommit: false |
| 1067 |
writeConcern: |
| 1068 |
command_name: commitTransaction |
| 1069 |
database_name: admin |
| 1070 |
- command_started_event: |
| 1071 |
command: |
| 1072 |
commitTransaction: 1 |
| 1073 |
lsid: session0 |
| 1074 |
txnNumber: |
| 1075 |
$numberLong: "1" |
| 1076 |
startTransaction: |
| 1077 |
autocommit: false |
| 1078 |
|
| 1079 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1080 |
command_name: commitTransaction |
| 1081 |
database_name: admin |
| 1082 |
|
| 1083 |
outcome: |
| 1084 |
collection: |
| 1085 |
data: |
| 1086 |
- _id: 1 |
| 1087 |
|
| 1088 |
- description: commitTransaction succeeds after NetworkTimeout |
| 1089 |
|
| 1090 |
failPoint: |
| 1091 |
configureFailPoint: failCommand |
| 1092 |
mode: { times: 1 } |
| 1093 |
data: |
| 1094 |
failCommands: ["commitTransaction"] |
| 1095 |
errorCode: 89 |
| 1096 |
errorLabels: ["RetryableWriteError"] |
| 1097 |
closeConnection: false |
| 1098 |
|
| 1099 |
operations: |
| 1100 |
- name: startTransaction |
| 1101 |
object: session0 |
| 1102 |
- name: insertOne |
| 1103 |
object: collection |
| 1104 |
arguments: |
| 1105 |
session: session0 |
| 1106 |
document: |
| 1107 |
_id: 1 |
| 1108 |
result: |
| 1109 |
insertedId: 1 |
| 1110 |
- name: commitTransaction |
| 1111 |
object: session0 |
| 1112 |
|
| 1113 |
expectations: |
| 1114 |
- command_started_event: |
| 1115 |
command: |
| 1116 |
insert: *collection_name |
| 1117 |
documents: |
| 1118 |
- _id: 1 |
| 1119 |
ordered: true |
| 1120 |
readConcern: |
| 1121 |
lsid: session0 |
| 1122 |
txnNumber: |
| 1123 |
$numberLong: "1" |
| 1124 |
startTransaction: true |
| 1125 |
autocommit: false |
| 1126 |
writeConcern: |
| 1127 |
command_name: insert |
| 1128 |
database_name: *database_name |
| 1129 |
- command_started_event: |
| 1130 |
command: |
| 1131 |
commitTransaction: 1 |
| 1132 |
lsid: session0 |
| 1133 |
txnNumber: |
| 1134 |
$numberLong: "1" |
| 1135 |
startTransaction: |
| 1136 |
autocommit: false |
| 1137 |
writeConcern: |
| 1138 |
command_name: commitTransaction |
| 1139 |
database_name: admin |
| 1140 |
- command_started_event: |
| 1141 |
command: |
| 1142 |
commitTransaction: 1 |
| 1143 |
lsid: session0 |
| 1144 |
txnNumber: |
| 1145 |
$numberLong: "1" |
| 1146 |
startTransaction: |
| 1147 |
autocommit: false |
| 1148 |
|
| 1149 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1150 |
command_name: commitTransaction |
| 1151 |
database_name: admin |
| 1152 |
|
| 1153 |
outcome: |
| 1154 |
collection: |
| 1155 |
data: |
| 1156 |
- _id: 1 |
| 1157 |
|
| 1158 |
- description: commitTransaction succeeds after WriteConcernError InterruptedAtShutdown |
| 1159 |
|
| 1160 |
failPoint: |
| 1161 |
configureFailPoint: failCommand |
| 1162 |
mode: { times: 1 } |
| 1163 |
data: |
| 1164 |
failCommands: ["commitTransaction"] |
| 1165 |
writeConcernError: |
| 1166 |
code: 11600 |
| 1167 |
errorLabels: ["RetryableWriteError"] |
| 1168 |
errmsg: Replication is being shut down |
| 1169 |
|
| 1170 |
operations: |
| 1171 |
- name: startTransaction |
| 1172 |
object: session0 |
| 1173 |
arguments: |
| 1174 |
options: |
| 1175 |
writeConcern: |
| 1176 |
w: majority |
| 1177 |
- name: insertOne |
| 1178 |
object: collection |
| 1179 |
arguments: |
| 1180 |
session: session0 |
| 1181 |
document: |
| 1182 |
_id: 1 |
| 1183 |
result: |
| 1184 |
insertedId: 1 |
| 1185 |
- name: commitTransaction |
| 1186 |
object: session0 |
| 1187 |
|
| 1188 |
expectations: |
| 1189 |
- command_started_event: |
| 1190 |
command: |
| 1191 |
insert: *collection_name |
| 1192 |
documents: |
| 1193 |
- _id: 1 |
| 1194 |
ordered: true |
| 1195 |
readConcern: |
| 1196 |
lsid: session0 |
| 1197 |
txnNumber: |
| 1198 |
$numberLong: "1" |
| 1199 |
startTransaction: true |
| 1200 |
autocommit: false |
| 1201 |
writeConcern: |
| 1202 |
command_name: insert |
| 1203 |
database_name: *database_name |
| 1204 |
- command_started_event: |
| 1205 |
command: |
| 1206 |
commitTransaction: 1 |
| 1207 |
lsid: session0 |
| 1208 |
txnNumber: |
| 1209 |
$numberLong: "1" |
| 1210 |
startTransaction: |
| 1211 |
autocommit: false |
| 1212 |
writeConcern: |
| 1213 |
w: majority |
| 1214 |
command_name: commitTransaction |
| 1215 |
database_name: admin |
| 1216 |
- command_started_event: |
| 1217 |
command: |
| 1218 |
commitTransaction: 1 |
| 1219 |
lsid: session0 |
| 1220 |
txnNumber: |
| 1221 |
$numberLong: "1" |
| 1222 |
startTransaction: |
| 1223 |
autocommit: false |
| 1224 |
|
| 1225 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1226 |
command_name: commitTransaction |
| 1227 |
database_name: admin |
| 1228 |
|
| 1229 |
outcome: |
| 1230 |
collection: |
| 1231 |
data: |
| 1232 |
- _id: 1 |
| 1233 |
|
| 1234 |
- description: commitTransaction succeeds after WriteConcernError InterruptedDueToReplStateChange |
| 1235 |
|
| 1236 |
failPoint: |
| 1237 |
configureFailPoint: failCommand |
| 1238 |
mode: { times: 1 } |
| 1239 |
data: |
| 1240 |
failCommands: ["commitTransaction"] |
| 1241 |
writeConcernError: |
| 1242 |
code: 11602 |
| 1243 |
errorLabels: ["RetryableWriteError"] |
| 1244 |
errmsg: Replication is being shut down |
| 1245 |
|
| 1246 |
operations: |
| 1247 |
- name: startTransaction |
| 1248 |
object: session0 |
| 1249 |
arguments: |
| 1250 |
options: |
| 1251 |
writeConcern: |
| 1252 |
w: majority |
| 1253 |
- name: insertOne |
| 1254 |
object: collection |
| 1255 |
arguments: |
| 1256 |
session: session0 |
| 1257 |
document: |
| 1258 |
_id: 1 |
| 1259 |
result: |
| 1260 |
insertedId: 1 |
| 1261 |
- name: commitTransaction |
| 1262 |
object: session0 |
| 1263 |
|
| 1264 |
expectations: |
| 1265 |
- command_started_event: |
| 1266 |
command: |
| 1267 |
insert: *collection_name |
| 1268 |
documents: |
| 1269 |
- _id: 1 |
| 1270 |
ordered: true |
| 1271 |
readConcern: |
| 1272 |
lsid: session0 |
| 1273 |
txnNumber: |
| 1274 |
$numberLong: "1" |
| 1275 |
startTransaction: true |
| 1276 |
autocommit: false |
| 1277 |
writeConcern: |
| 1278 |
command_name: insert |
| 1279 |
database_name: *database_name |
| 1280 |
- command_started_event: |
| 1281 |
command: |
| 1282 |
commitTransaction: 1 |
| 1283 |
lsid: session0 |
| 1284 |
txnNumber: |
| 1285 |
$numberLong: "1" |
| 1286 |
startTransaction: |
| 1287 |
autocommit: false |
| 1288 |
writeConcern: |
| 1289 |
w: majority |
| 1290 |
command_name: commitTransaction |
| 1291 |
database_name: admin |
| 1292 |
- command_started_event: |
| 1293 |
command: |
| 1294 |
commitTransaction: 1 |
| 1295 |
lsid: session0 |
| 1296 |
txnNumber: |
| 1297 |
$numberLong: "1" |
| 1298 |
startTransaction: |
| 1299 |
autocommit: false |
| 1300 |
|
| 1301 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1302 |
command_name: commitTransaction |
| 1303 |
database_name: admin |
| 1304 |
|
| 1305 |
outcome: |
| 1306 |
collection: |
| 1307 |
data: |
| 1308 |
- _id: 1 |
| 1309 |
|
| 1310 |
- description: commitTransaction succeeds after WriteConcernError PrimarySteppedDown |
| 1311 |
|
| 1312 |
failPoint: |
| 1313 |
configureFailPoint: failCommand |
| 1314 |
mode: { times: 1 } |
| 1315 |
data: |
| 1316 |
failCommands: ["commitTransaction"] |
| 1317 |
writeConcernError: |
| 1318 |
code: 189 |
| 1319 |
errorLabels: ["RetryableWriteError"] |
| 1320 |
errmsg: Replication is being shut down |
| 1321 |
|
| 1322 |
operations: |
| 1323 |
- name: startTransaction |
| 1324 |
object: session0 |
| 1325 |
arguments: |
| 1326 |
options: |
| 1327 |
writeConcern: |
| 1328 |
w: majority |
| 1329 |
- name: insertOne |
| 1330 |
object: collection |
| 1331 |
arguments: |
| 1332 |
session: session0 |
| 1333 |
document: |
| 1334 |
_id: 1 |
| 1335 |
result: |
| 1336 |
insertedId: 1 |
| 1337 |
- name: commitTransaction |
| 1338 |
object: session0 |
| 1339 |
|
| 1340 |
expectations: |
| 1341 |
- command_started_event: |
| 1342 |
command: |
| 1343 |
insert: *collection_name |
| 1344 |
documents: |
| 1345 |
- _id: 1 |
| 1346 |
ordered: true |
| 1347 |
readConcern: |
| 1348 |
lsid: session0 |
| 1349 |
txnNumber: |
| 1350 |
$numberLong: "1" |
| 1351 |
startTransaction: true |
| 1352 |
autocommit: false |
| 1353 |
writeConcern: |
| 1354 |
command_name: insert |
| 1355 |
database_name: *database_name |
| 1356 |
- command_started_event: |
| 1357 |
command: |
| 1358 |
commitTransaction: 1 |
| 1359 |
lsid: session0 |
| 1360 |
txnNumber: |
| 1361 |
$numberLong: "1" |
| 1362 |
startTransaction: |
| 1363 |
autocommit: false |
| 1364 |
writeConcern: |
| 1365 |
w: majority |
| 1366 |
command_name: commitTransaction |
| 1367 |
database_name: admin |
| 1368 |
- command_started_event: |
| 1369 |
command: |
| 1370 |
commitTransaction: 1 |
| 1371 |
lsid: session0 |
| 1372 |
txnNumber: |
| 1373 |
$numberLong: "1" |
| 1374 |
startTransaction: |
| 1375 |
autocommit: false |
| 1376 |
|
| 1377 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1378 |
command_name: commitTransaction |
| 1379 |
database_name: admin |
| 1380 |
|
| 1381 |
outcome: |
| 1382 |
collection: |
| 1383 |
data: |
| 1384 |
- _id: 1 |
| 1385 |
|
| 1386 |
- description: commitTransaction succeeds after WriteConcernError ShutdownInProgress |
| 1387 |
|
| 1388 |
failPoint: |
| 1389 |
configureFailPoint: failCommand |
| 1390 |
mode: { times: 1 } |
| 1391 |
data: |
| 1392 |
failCommands: ["commitTransaction"] |
| 1393 |
writeConcernError: |
| 1394 |
code: 91 |
| 1395 |
errorLabels: ["RetryableWriteError"] |
| 1396 |
errmsg: Replication is being shut down |
| 1397 |
|
| 1398 |
operations: |
| 1399 |
- name: startTransaction |
| 1400 |
object: session0 |
| 1401 |
arguments: |
| 1402 |
options: |
| 1403 |
writeConcern: |
| 1404 |
w: majority |
| 1405 |
- name: insertOne |
| 1406 |
object: collection |
| 1407 |
arguments: |
| 1408 |
session: session0 |
| 1409 |
document: |
| 1410 |
_id: 1 |
| 1411 |
result: |
| 1412 |
insertedId: 1 |
| 1413 |
- name: commitTransaction |
| 1414 |
object: session0 |
| 1415 |
|
| 1416 |
expectations: |
| 1417 |
- command_started_event: |
| 1418 |
command: |
| 1419 |
insert: *collection_name |
| 1420 |
documents: |
| 1421 |
- _id: 1 |
| 1422 |
ordered: true |
| 1423 |
readConcern: |
| 1424 |
lsid: session0 |
| 1425 |
txnNumber: |
| 1426 |
$numberLong: "1" |
| 1427 |
startTransaction: true |
| 1428 |
autocommit: false |
| 1429 |
writeConcern: |
| 1430 |
command_name: insert |
| 1431 |
database_name: *database_name |
| 1432 |
- command_started_event: |
| 1433 |
command: |
| 1434 |
commitTransaction: 1 |
| 1435 |
lsid: session0 |
| 1436 |
txnNumber: |
| 1437 |
$numberLong: "1" |
| 1438 |
startTransaction: |
| 1439 |
autocommit: false |
| 1440 |
writeConcern: |
| 1441 |
w: majority |
| 1442 |
command_name: commitTransaction |
| 1443 |
database_name: admin |
| 1444 |
- command_started_event: |
| 1445 |
command: |
| 1446 |
commitTransaction: 1 |
| 1447 |
lsid: session0 |
| 1448 |
txnNumber: |
| 1449 |
$numberLong: "1" |
| 1450 |
startTransaction: |
| 1451 |
autocommit: false |
| 1452 |
|
| 1453 |
writeConcern: { w: majority, wtimeout: 10000 } |
| 1454 |
command_name: commitTransaction |
| 1455 |
database_name: admin |
| 1456 |
|
| 1457 |
outcome: |
| 1458 |
collection: |
| 1459 |
data: |
| 1460 |
- _id: 1 |