17
17
- _id : 1
18
18
- _id : 1
19
19
result :
20
- errorCodeName : DuplicateKey
20
+ # Don't assert on errorCodeName because (after SERVER-38583) the
21
+ # DuplicateKey is reported in writeErrors, not as a top-level
22
+ # command error.
21
23
errorLabelsOmit : ["TransientTransactionError", "UnknownTransactionCommitResult"]
22
24
- name : abortTransaction
23
25
object : session0
@@ -461,7 +463,8 @@ tests:
461
463
$numberLong : " 1"
462
464
startTransaction :
463
465
autocommit : false
464
- writeConcern :
466
+ # commitTransaction applies w:majority on retries
467
+ writeConcern : { w: majority, wtimeout: 10000 }
465
468
command_name : commitTransaction
466
469
database_name : admin
467
470
- command_started_event :
@@ -472,7 +475,7 @@ tests:
472
475
$numberLong : " 1"
473
476
startTransaction :
474
477
autocommit : false
475
- writeConcern :
478
+ writeConcern : { w: majority, wtimeout: 10000 }
476
479
command_name : commitTransaction
477
480
database_name : admin
478
481
@@ -544,7 +547,8 @@ tests:
544
547
$numberLong : " 1"
545
548
startTransaction :
546
549
autocommit : false
547
- writeConcern :
550
+ # commitTransaction applies w:majority on retries
551
+ writeConcern : { w: majority, wtimeout: 10000 }
548
552
command_name : commitTransaction
549
553
database_name : admin
550
554
- command_started_event :
@@ -555,7 +559,7 @@ tests:
555
559
$numberLong : " 1"
556
560
startTransaction :
557
561
autocommit : false
558
- writeConcern :
562
+ writeConcern : { w: majority, wtimeout: 10000 }
559
563
command_name : commitTransaction
560
564
database_name : admin
561
565
@@ -634,8 +638,8 @@ tests:
634
638
$numberLong : " 1"
635
639
startTransaction :
636
640
autocommit : false
637
- writeConcern :
638
- w : majority
641
+ # commitTransaction applies w:majority on retries
642
+ writeConcern : { w: majority, wtimeout: 10000 }
639
643
command_name : commitTransaction
640
644
database_name : admin
641
645
- command_started_event :
@@ -646,8 +650,8 @@ tests:
646
650
$numberLong : " 1"
647
651
startTransaction :
648
652
autocommit : false
649
- writeConcern :
650
- w : majority
653
+ # commitTransaction applies w:majority on retries
654
+ writeConcern : { w: majority, wtimeout: 10000 }
651
655
command_name : commitTransaction
652
656
database_name : admin
653
657
@@ -726,8 +730,8 @@ tests:
726
730
$numberLong : " 1"
727
731
startTransaction :
728
732
autocommit : false
729
- writeConcern :
730
- w : majority
733
+ # commitTransaction applies w:majority on retries
734
+ writeConcern : { w: majority, wtimeout: 10000 }
731
735
command_name : commitTransaction
732
736
database_name : admin
733
737
@@ -808,8 +812,8 @@ tests:
808
812
$numberLong : " 1"
809
813
startTransaction :
810
814
autocommit : false
811
- writeConcern :
812
- w : majority
815
+ # commitTransaction applies w:majority on retries
816
+ writeConcern : { w: majority, wtimeout: 10000 }
813
817
command_name : commitTransaction
814
818
database_name : admin
815
819
0 commit comments