Debian Codegraph @

testdata/transactions/legacy/retryable-abort.json

raw symbols SCIP
1 {
2 "runOn": [
3 {
4 "minServerVersion": "4.0",
5 "topology": [
6 "replicaset"
7 ]
8 },
9 {
10 "minServerVersion": "4.1.8",
11 "topology": [
12 "sharded"
13 ]
14 }
15 ],
16 "database_name": "transaction-tests",
17 "collection_name": "test",
18 "data": [],
19 "tests": [
20 {
21 "description": "abortTransaction only performs a single retry",
22 "clientOptions": {
23 "retryWrites": false
24 },
25 "failPoint": {
26 "configureFailPoint": "failCommand",
27 "mode": {
28 "times": 2
29 },
30 "data": {
31 "failCommands": [
32 "abortTransaction"
33 ],
34 "closeConnection": true
35 }
36 },
37 "operations": [
38 {
39 "name": "startTransaction",
40 "object": "session0"
41 },
42 {
43 "name": "insertOne",
44 "object": "collection",
45 "arguments": {
46 "session": "session0",
47 "document": {
48 "_id": 1
49 }
50 },
51 "result": {
52 "insertedId": 1
53 }
54 },
55 {
56 "name": "abortTransaction",
57 "object": "session0"
58 }
59 ],
60 "expectations": [
61 {
62 "command_started_event": {
63 "command": {
64 "insert": "test",
65 "documents": [
66 {
67 "_id": 1
68 }
69 ],
70 "ordered": true,
71 "readConcern": null,
72 "lsid": "session0",
73 "txnNumber": {
74 "$numberLong": "1"
75 },
76 "startTransaction": true,
77 "autocommit": false,
78 "writeConcern": null
79 },
80 "command_name": "insert",
81 "database_name": "transaction-tests"
82 }
83 },
84 {
85 "command_started_event": {
86 "command": {
87 "abortTransaction": 1,
88 "lsid": "session0",
89 "txnNumber": {
90 "$numberLong": "1"
91 },
92 "startTransaction": null,
93 "autocommit": false,
94 "writeConcern": null
95 },
96 "command_name": "abortTransaction",
97 "database_name": "admin"
98 }
99 },
100 {
101 "command_started_event": {
102 "command": {
103 "abortTransaction": 1,
104 "lsid": "session0",
105 "txnNumber": {
106 "$numberLong": "1"
107 },
108 "startTransaction": null,
109 "autocommit": false,
110 "writeConcern": null
111 },
112 "command_name": "abortTransaction",
113 "database_name": "admin"
114 }
115 }
116 ],
117 "outcome": {
118 "collection": {
119 "data": []
120 }
121 }
122 },
123 {
124 "description": "abortTransaction does not retry after Interrupted",
125 "failPoint": {
126 "configureFailPoint": "failCommand",
127 "mode": {
128 "times": 1
129 },
130 "data": {
131 "failCommands": [
132 "abortTransaction"
133 ],
134 "errorCode": 11601,
135 "closeConnection": false
136 }
137 },
138 "operations": [
139 {
140 "name": "startTransaction",
141 "object": "session0"
142 },
143 {
144 "name": "insertOne",
145 "object": "collection",
146 "arguments": {
147 "session": "session0",
148 "document": {
149 "_id": 1
150 }
151 },
152 "result": {
153 "insertedId": 1
154 }
155 },
156 {
157 "name": "abortTransaction",
158 "object": "session0"
159 }
160 ],
161 "expectations": [
162 {
163 "command_started_event": {
164 "command": {
165 "insert": "test",
166 "documents": [
167 {
168 "_id": 1
169 }
170 ],
171 "ordered": true,
172 "readConcern": null,
173 "lsid": "session0",
174 "txnNumber": {
175 "$numberLong": "1"
176 },
177 "startTransaction": true,
178 "autocommit": false,
179 "writeConcern": null
180 },
181 "command_name": "insert",
182 "database_name": "transaction-tests"
183 }
184 },
185 {
186 "command_started_event": {
187 "command": {
188 "abortTransaction": 1,
189 "lsid": "session0",
190 "txnNumber": {
191 "$numberLong": "1"
192 },
193 "startTransaction": null,
194 "autocommit": false,
195 "writeConcern": null
196 },
197 "command_name": "abortTransaction",
198 "database_name": "admin"
199 }
200 }
201 ],
202 "outcome": {
203 "collection": {
204 "data": []
205 }
206 }
207 },
208 {
209 "description": "abortTransaction does not retry after WriteConcernError Interrupted",
210 "failPoint": {
211 "configureFailPoint": "failCommand",
212 "mode": {
213 "times": 1
214 },
215 "data": {
216 "failCommands": [
217 "abortTransaction"
218 ],
219 "writeConcernError": {
220 "code": 11601,
221 "errmsg": "operation was interrupted"
222 }
223 }
224 },
225 "operations": [
226 {
227 "name": "startTransaction",
228 "object": "session0",
229 "arguments": {
230 "options": {
231 "writeConcern": {
232 "w": "majority"
233 }
234 }
235 }
236 },
237 {
238 "name": "insertOne",
239 "object": "collection",
240 "arguments": {
241 "session": "session0",
242 "document": {
243 "_id": 1
244 }
245 },
246 "result": {
247 "insertedId": 1
248 }
249 },
250 {
251 "name": "abortTransaction",
252 "object": "session0"
253 }
254 ],
255 "expectations": [
256 {
257 "command_started_event": {
258 "command": {
259 "insert": "test",
260 "documents": [
261 {
262 "_id": 1
263 }
264 ],
265 "ordered": true,
266 "readConcern": null,
267 "lsid": "session0",
268 "txnNumber": {
269 "$numberLong": "1"
270 },
271 "startTransaction": true,
272 "autocommit": false,
273 "writeConcern": null
274 },
275 "command_name": "insert",
276 "database_name": "transaction-tests"
277 }
278 },
279 {
280 "command_started_event": {
281 "command": {
282 "abortTransaction": 1,
283 "lsid": "session0",
284 "txnNumber": {
285 "$numberLong": "1"
286 },
287 "startTransaction": null,
288 "autocommit": false,
289 "writeConcern": {
290 "w": "majority"
291 }
292 },
293 "command_name": "abortTransaction",
294 "database_name": "admin"
295 }
296 }
297 ],
298 "outcome": {
299 "collection": {
300 "data": []
301 }
302 }
303 },
304 {
305 "description": "abortTransaction succeeds after connection error",
306 "failPoint": {
307 "configureFailPoint": "failCommand",
308 "mode": {
309 "times": 1
310 },
311 "data": {
312 "failCommands": [
313 "abortTransaction"
314 ],
315 "closeConnection": true
316 }
317 },
318 "operations": [
319 {
320 "name": "startTransaction",
321 "object": "session0"
322 },
323 {
324 "name": "insertOne",
325 "object": "collection",
326 "arguments": {
327 "session": "session0",
328 "document": {
329 "_id": 1
330 }
331 },
332 "result": {
333 "insertedId": 1
334 }
335 },
336 {
337 "name": "abortTransaction",
338 "object": "session0"
339 }
340 ],
341 "expectations": [
342 {
343 "command_started_event": {
344 "command": {
345 "insert": "test",
346 "documents": [
347 {
348 "_id": 1
349 }
350 ],
351 "ordered": true,
352 "readConcern": null,
353 "lsid": "session0",
354 "txnNumber": {
355 "$numberLong": "1"
356 },
357 "startTransaction": true,
358 "autocommit": false,
359 "writeConcern": null
360 },
361 "command_name": "insert",
362 "database_name": "transaction-tests"
363 }
364 },
365 {
366 "command_started_event": {
367 "command": {
368 "abortTransaction": 1,
369 "lsid": "session0",
370 "txnNumber": {
371 "$numberLong": "1"
372 },
373 "startTransaction": null,
374 "autocommit": false,
375 "writeConcern": null
376 },
377 "command_name": "abortTransaction",
378 "database_name": "admin"
379 }
380 },
381 {
382 "command_started_event": {
383 "command": {
384 "abortTransaction": 1,
385 "lsid": "session0",
386 "txnNumber": {
387 "$numberLong": "1"
388 },
389 "startTransaction": null,
390 "autocommit": false,
391 "writeConcern": null
392 },
393 "command_name": "abortTransaction",
394 "database_name": "admin"
395 }
396 }
397 ],
398 "outcome": {
399 "collection": {
400 "data": []
401 }
402 }
403 },
404 {
405 "description": "abortTransaction succeeds after NotWritablePrimary",
406 "failPoint": {
407 "configureFailPoint": "failCommand",
408 "mode": {
409 "times": 1
410 },
411 "data": {
412 "failCommands": [
413 "abortTransaction"
414 ],
415 "errorCode": 10107,
416 "errorLabels": [
417 "RetryableWriteError"
418 ],
419 "closeConnection": false
420 }
421 },
422 "operations": [
423 {
424 "name": "startTransaction",
425 "object": "session0"
426 },
427 {
428 "name": "insertOne",
429 "object": "collection",
430 "arguments": {
431 "session": "session0",
432 "document": {
433 "_id": 1
434 }
435 },
436 "result": {
437 "insertedId": 1
438 }
439 },
440 {
441 "name": "abortTransaction",
442 "object": "session0"
443 }
444 ],
445 "expectations": [
446 {
447 "command_started_event": {
448 "command": {
449 "insert": "test",
450 "documents": [
451 {
452 "_id": 1
453 }
454 ],
455 "ordered": true,
456 "readConcern": null,
457 "lsid": "session0",
458 "txnNumber": {
459 "$numberLong": "1"
460 },
461 "startTransaction": true,
462 "autocommit": false,
463 "writeConcern": null
464 },
465 "command_name": "insert",
466 "database_name": "transaction-tests"
467 }
468 },
469 {
470 "command_started_event": {
471 "command": {
472 "abortTransaction": 1,
473 "lsid": "session0",
474 "txnNumber": {
475 "$numberLong": "1"
476 },
477 "startTransaction": null,
478 "autocommit": false,
479 "writeConcern": null
480 },
481 "command_name": "abortTransaction",
482 "database_name": "admin"
483 }
484 },
485 {
486 "command_started_event": {
487 "command": {
488 "abortTransaction": 1,
489 "lsid": "session0",
490 "txnNumber": {
491 "$numberLong": "1"
492 },
493 "startTransaction": null,
494 "autocommit": false,
495 "writeConcern": null
496 },
497 "command_name": "abortTransaction",
498 "database_name": "admin"
499 }
500 }
501 ],
502 "outcome": {
503 "collection": {
504 "data": []
505 }
506 }
507 },
508 {
509 "description": "abortTransaction succeeds after NotPrimaryOrSecondary",
510 "failPoint": {
511 "configureFailPoint": "failCommand",
512 "mode": {
513 "times": 1
514 },
515 "data": {
516 "failCommands": [
517 "abortTransaction"
518 ],
519 "errorCode": 13436,
520 "errorLabels": [
521 "RetryableWriteError"
522 ],
523 "closeConnection": false
524 }
525 },
526 "operations": [
527 {
528 "name": "startTransaction",
529 "object": "session0"
530 },
531 {
532 "name": "insertOne",
533 "object": "collection",
534 "arguments": {
535 "session": "session0",
536 "document": {
537 "_id": 1
538 }
539 },
540 "result": {
541 "insertedId": 1
542 }
543 },
544 {
545 "name": "abortTransaction",
546 "object": "session0"
547 }
548 ],
549 "expectations": [
550 {
551 "command_started_event": {
552 "command": {
553 "insert": "test",
554 "documents": [
555 {
556 "_id": 1
557 }
558 ],
559 "ordered": true,
560 "readConcern": null,
561 "lsid": "session0",
562 "txnNumber": {
563 "$numberLong": "1"
564 },
565 "startTransaction": true,
566 "autocommit": false,
567 "writeConcern": null
568 },
569 "command_name": "insert",
570 "database_name": "transaction-tests"
571 }
572 },
573 {
574 "command_started_event": {
575 "command": {
576 "abortTransaction": 1,
577 "lsid": "session0",
578 "txnNumber": {
579 "$numberLong": "1"
580 },
581 "startTransaction": null,
582 "autocommit": false,
583 "writeConcern": null
584 },
585 "command_name": "abortTransaction",
586 "database_name": "admin"
587 }
588 },
589 {
590 "command_started_event": {
591 "command": {
592 "abortTransaction": 1,
593 "lsid": "session0",
594 "txnNumber": {
595 "$numberLong": "1"
596 },
597 "startTransaction": null,
598 "autocommit": false,
599 "writeConcern": null
600 },
601 "command_name": "abortTransaction",
602 "database_name": "admin"
603 }
604 }
605 ],
606 "outcome": {
607 "collection": {
608 "data": []
609 }
610 }
611 },
612 {
613 "description": "abortTransaction succeeds after NotPrimaryNoSecondaryOk",
614 "failPoint": {
615 "configureFailPoint": "failCommand",
616 "mode": {
617 "times": 1
618 },
619 "data": {
620 "failCommands": [
621 "abortTransaction"
622 ],
623 "errorCode": 13435,
624 "errorLabels": [
625 "RetryableWriteError"
626 ],
627 "closeConnection": false
628 }
629 },
630 "operations": [
631 {
632 "name": "startTransaction",
633 "object": "session0"
634 },
635 {
636 "name": "insertOne",
637 "object": "collection",
638 "arguments": {
639 "session": "session0",
640 "document": {
641 "_id": 1
642 }
643 },
644 "result": {
645 "insertedId": 1
646 }
647 },
648 {
649 "name": "abortTransaction",
650 "object": "session0"
651 }
652 ],
653 "expectations": [
654 {
655 "command_started_event": {
656 "command": {
657 "insert": "test",
658 "documents": [
659 {
660 "_id": 1
661 }
662 ],
663 "ordered": true,
664 "readConcern": null,
665 "lsid": "session0",
666 "txnNumber": {
667 "$numberLong": "1"
668 },
669 "startTransaction": true,
670 "autocommit": false,
671 "writeConcern": null
672 },
673 "command_name": "insert",
674 "database_name": "transaction-tests"
675 }
676 },
677 {
678 "command_started_event": {
679 "command": {
680 "abortTransaction": 1,
681 "lsid": "session0",
682 "txnNumber": {
683 "$numberLong": "1"
684 },
685 "startTransaction": null,
686 "autocommit": false,
687 "writeConcern": null
688 },
689 "command_name": "abortTransaction",
690 "database_name": "admin"
691 }
692 },
693 {
694 "command_started_event": {
695 "command": {
696 "abortTransaction": 1,
697 "lsid": "session0",
698 "txnNumber": {
699 "$numberLong": "1"
700 },
701 "startTransaction": null,
702 "autocommit": false,
703 "writeConcern": null
704 },
705 "command_name": "abortTransaction",
706 "database_name": "admin"
707 }
708 }
709 ],
710 "outcome": {
711 "collection": {
712 "data": []
713 }
714 }
715 },
716 {
717 "description": "abortTransaction succeeds after InterruptedDueToReplStateChange",
718 "failPoint": {
719 "configureFailPoint": "failCommand",
720 "mode": {
721 "times": 1
722 },
723 "data": {
724 "failCommands": [
725 "abortTransaction"
726 ],
727 "errorCode": 11602,
728 "errorLabels": [
729 "RetryableWriteError"
730 ],
731 "closeConnection": false
732 }
733 },
734 "operations": [
735 {
736 "name": "startTransaction",
737 "object": "session0"
738 },
739 {
740 "name": "insertOne",
741 "object": "collection",
742 "arguments": {
743 "session": "session0",
744 "document": {
745 "_id": 1
746 }
747 },
748 "result": {
749 "insertedId": 1
750 }
751 },
752 {
753 "name": "abortTransaction",
754 "object": "session0"
755 }
756 ],
757 "expectations": [
758 {
759 "command_started_event": {
760 "command": {
761 "insert": "test",
762 "documents": [
763 {
764 "_id": 1
765 }
766 ],
767 "ordered": true,
768 "readConcern": null,
769 "lsid": "session0",
770 "txnNumber": {
771 "$numberLong": "1"
772 },
773 "startTransaction": true,
774 "autocommit": false,
775 "writeConcern": null
776 },
777 "command_name": "insert",
778 "database_name": "transaction-tests"
779 }
780 },
781 {
782 "command_started_event": {
783 "command": {
784 "abortTransaction": 1,
785 "lsid": "session0",
786 "txnNumber": {
787 "$numberLong": "1"
788 },
789 "startTransaction": null,
790 "autocommit": false,
791 "writeConcern": null
792 },
793 "command_name": "abortTransaction",
794 "database_name": "admin"
795 }
796 },
797 {
798 "command_started_event": {
799 "command": {
800 "abortTransaction": 1,
801 "lsid": "session0",
802 "txnNumber": {
803 "$numberLong": "1"
804 },
805 "startTransaction": null,
806 "autocommit": false,
807 "writeConcern": null
808 },
809 "command_name": "abortTransaction",
810 "database_name": "admin"
811 }
812 }
813 ],
814 "outcome": {
815 "collection": {
816 "data": []
817 }
818 }
819 },
820 {
821 "description": "abortTransaction succeeds after InterruptedAtShutdown",
822 "failPoint": {
823 "configureFailPoint": "failCommand",
824 "mode": {
825 "times": 1
826 },
827 "data": {
828 "failCommands": [
829 "abortTransaction"
830 ],
831 "errorCode": 11600,
832 "errorLabels": [
833 "RetryableWriteError"
834 ],
835 "closeConnection": false
836 }
837 },
838 "operations": [
839 {
840 "name": "startTransaction",
841 "object": "session0"
842 },
843 {
844 "name": "insertOne",
845 "object": "collection",
846 "arguments": {
847 "session": "session0",
848 "document": {
849 "_id": 1
850 }
851 },
852 "result": {
853 "insertedId": 1
854 }
855 },
856 {
857 "name": "abortTransaction",
858 "object": "session0"
859 }
860 ],
861 "expectations": [
862 {
863 "command_started_event": {
864 "command": {
865 "insert": "test",
866 "documents": [
867 {
868 "_id": 1
869 }
870 ],
871 "ordered": true,
872 "readConcern": null,
873 "lsid": "session0",
874 "txnNumber": {
875 "$numberLong": "1"
876 },
877 "startTransaction": true,
878 "autocommit": false,
879 "writeConcern": null
880 },
881 "command_name": "insert",
882 "database_name": "transaction-tests"
883 }
884 },
885 {
886 "command_started_event": {
887 "command": {
888 "abortTransaction": 1,
889 "lsid": "session0",
890 "txnNumber": {
891 "$numberLong": "1"
892 },
893 "startTransaction": null,
894 "autocommit": false,
895 "writeConcern": null
896 },
897 "command_name": "abortTransaction",
898 "database_name": "admin"
899 }
900 },
901 {
902 "command_started_event": {
903 "command": {
904 "abortTransaction": 1,
905 "lsid": "session0",
906 "txnNumber": {
907 "$numberLong": "1"
908 },
909 "startTransaction": null,
910 "autocommit": false,
911 "writeConcern": null
912 },
913 "command_name": "abortTransaction",
914 "database_name": "admin"
915 }
916 }
917 ],
918 "outcome": {
919 "collection": {
920 "data": []
921 }
922 }
923 },
924 {
925 "description": "abortTransaction succeeds after PrimarySteppedDown",
926 "failPoint": {
927 "configureFailPoint": "failCommand",
928 "mode": {
929 "times": 1
930 },
931 "data": {
932 "failCommands": [
933 "abortTransaction"
934 ],
935 "errorCode": 189,
936 "errorLabels": [
937 "RetryableWriteError"
938 ],
939 "closeConnection": false
940 }
941 },
942 "operations": [
943 {
944 "name": "startTransaction",
945 "object": "session0"
946 },
947 {
948 "name": "insertOne",
949 "object": "collection",
950 "arguments": {
951 "session": "session0",
952 "document": {
953 "_id": 1
954 }
955 },
956 "result": {
957 "insertedId": 1
958 }
959 },
960 {
961 "name": "abortTransaction",
962 "object": "session0"
963 }
964 ],
965 "expectations": [
966 {
967 "command_started_event": {
968 "command": {
969 "insert": "test",
970 "documents": [
971 {
972 "_id": 1
973 }
974 ],
975 "ordered": true,
976 "readConcern": null,
977 "lsid": "session0",
978 "txnNumber": {
979 "$numberLong": "1"
980 },
981 "startTransaction": true,
982 "autocommit": false,
983 "writeConcern": null
984 },
985 "command_name": "insert",
986 "database_name": "transaction-tests"
987 }
988 },
989 {
990 "command_started_event": {
991 "command": {
992 "abortTransaction": 1,
993 "lsid": "session0",
994 "txnNumber": {
995 "$numberLong": "1"
996 },
997 "startTransaction": null,
998 "autocommit": false,
999 "writeConcern": null
1000 },
1001 "command_name": "abortTransaction",
1002 "database_name": "admin"
1003 }
1004 },
1005 {
1006 "command_started_event": {
1007 "command": {
1008 "abortTransaction": 1,
1009 "lsid": "session0",
1010 "txnNumber": {
1011 "$numberLong": "1"
1012 },
1013 "startTransaction": null,
1014 "autocommit": false,
1015 "writeConcern": null
1016 },
1017 "command_name": "abortTransaction",
1018 "database_name": "admin"
1019 }
1020 }
1021 ],
1022 "outcome": {
1023 "collection": {
1024 "data": []
1025 }
1026 }
1027 },
1028 {
1029 "description": "abortTransaction succeeds after ShutdownInProgress",
1030 "failPoint": {
1031 "configureFailPoint": "failCommand",
1032 "mode": {
1033 "times": 1
1034 },
1035 "data": {
1036 "failCommands": [
1037 "abortTransaction"
1038 ],
1039 "errorCode": 91,
1040 "errorLabels": [
1041 "RetryableWriteError"
1042 ],
1043 "closeConnection": false
1044 }
1045 },
1046 "operations": [
1047 {
1048 "name": "startTransaction",
1049 "object": "session0"
1050 },
1051 {
1052 "name": "insertOne",
1053 "object": "collection",
1054 "arguments": {
1055 "session": "session0",
1056 "document": {
1057 "_id": 1
1058 }
1059 },
1060 "result": {
1061 "insertedId": 1
1062 }
1063 },
1064 {
1065 "name": "abortTransaction",
1066 "object": "session0"
1067 }
1068 ],
1069 "expectations": [
1070 {
1071 "command_started_event": {
1072 "command": {
1073 "insert": "test",
1074 "documents": [
1075 {
1076 "_id": 1
1077 }
1078 ],
1079 "ordered": true,
1080 "readConcern": null,
1081 "lsid": "session0",
1082 "txnNumber": {
1083 "$numberLong": "1"
1084 },
1085 "startTransaction": true,
1086 "autocommit": false,
1087 "writeConcern": null
1088 },
1089 "command_name": "insert",
1090 "database_name": "transaction-tests"
1091 }
1092 },
1093 {
1094 "command_started_event": {
1095 "command": {
1096 "abortTransaction": 1,
1097 "lsid": "session0",
1098 "txnNumber": {
1099 "$numberLong": "1"
1100 },
1101 "startTransaction": null,
1102 "autocommit": false,
1103 "writeConcern": null
1104 },
1105 "command_name": "abortTransaction",
1106 "database_name": "admin"
1107 }
1108 },
1109 {
1110 "command_started_event": {
1111 "command": {
1112 "abortTransaction": 1,
1113 "lsid": "session0",
1114 "txnNumber": {
1115 "$numberLong": "1"
1116 },
1117 "startTransaction": null,
1118 "autocommit": false,
1119 "writeConcern": null
1120 },
1121 "command_name": "abortTransaction",
1122 "database_name": "admin"
1123 }
1124 }
1125 ],
1126 "outcome": {
1127 "collection": {
1128 "data": []
1129 }
1130 }
1131 },
1132 {
1133 "description": "abortTransaction succeeds after HostNotFound",
1134 "failPoint": {
1135 "configureFailPoint": "failCommand",
1136 "mode": {
1137 "times": 1
1138 },
1139 "data": {
1140 "failCommands": [
1141 "abortTransaction"
1142 ],
1143 "errorCode": 7,
1144 "errorLabels": [
1145 "RetryableWriteError"
1146 ],
1147 "closeConnection": false
1148 }
1149 },
1150 "operations": [
1151 {
1152 "name": "startTransaction",
1153 "object": "session0"
1154 },
1155 {
1156 "name": "insertOne",
1157 "object": "collection",
1158 "arguments": {
1159 "session": "session0",
1160 "document": {
1161 "_id": 1
1162 }
1163 },
1164 "result": {
1165 "insertedId": 1
1166 }
1167 },
1168 {
1169 "name": "abortTransaction",
1170 "object": "session0"
1171 }
1172 ],
1173 "expectations": [
1174 {
1175 "command_started_event": {
1176 "command": {
1177 "insert": "test",
1178 "documents": [
1179 {
1180 "_id": 1
1181 }
1182 ],
1183 "ordered": true,
1184 "readConcern": null,
1185 "lsid": "session0",
1186 "txnNumber": {
1187 "$numberLong": "1"
1188 },
1189 "startTransaction": true,
1190 "autocommit": false,
1191 "writeConcern": null
1192 },
1193 "command_name": "insert",
1194 "database_name": "transaction-tests"
1195 }
1196 },
1197 {
1198 "command_started_event": {
1199 "command": {
1200 "abortTransaction": 1,
1201 "lsid": "session0",
1202 "txnNumber": {
1203 "$numberLong": "1"
1204 },
1205 "startTransaction": null,
1206 "autocommit": false,
1207 "writeConcern": null
1208 },
1209 "command_name": "abortTransaction",
1210 "database_name": "admin"
1211 }
1212 },
1213 {
1214 "command_started_event": {
1215 "command": {
1216 "abortTransaction": 1,
1217 "lsid": "session0",
1218 "txnNumber": {
1219 "$numberLong": "1"
1220 },
1221 "startTransaction": null,
1222 "autocommit": false,
1223 "writeConcern": null
1224 },
1225 "command_name": "abortTransaction",
1226 "database_name": "admin"
1227 }
1228 }
1229 ],
1230 "outcome": {
1231 "collection": {
1232 "data": []
1233 }
1234 }
1235 },
1236 {
1237 "description": "abortTransaction succeeds after HostUnreachable",
1238 "failPoint": {
1239 "configureFailPoint": "failCommand",
1240 "mode": {
1241 "times": 1
1242 },
1243 "data": {
1244 "failCommands": [
1245 "abortTransaction"
1246 ],
1247 "errorCode": 6,
1248 "errorLabels": [
1249 "RetryableWriteError"
1250 ],
1251 "closeConnection": false
1252 }
1253 },
1254 "operations": [
1255 {
1256 "name": "startTransaction",
1257 "object": "session0"
1258 },
1259 {
1260 "name": "insertOne",
1261 "object": "collection",
1262 "arguments": {
1263 "session": "session0",
1264 "document": {
1265 "_id": 1
1266 }
1267 },
1268 "result": {
1269 "insertedId": 1
1270 }
1271 },
1272 {
1273 "name": "abortTransaction",
1274 "object": "session0"
1275 }
1276 ],
1277 "expectations": [
1278 {
1279 "command_started_event": {
1280 "command": {
1281 "insert": "test",
1282 "documents": [
1283 {
1284 "_id": 1
1285 }
1286 ],
1287 "ordered": true,
1288 "readConcern": null,
1289 "lsid": "session0",
1290 "txnNumber": {
1291 "$numberLong": "1"
1292 },
1293 "startTransaction": true,
1294 "autocommit": false,
1295 "writeConcern": null
1296 },
1297 "command_name": "insert",
1298 "database_name": "transaction-tests"
1299 }
1300 },
1301 {
1302 "command_started_event": {
1303 "command": {
1304 "abortTransaction": 1,
1305 "lsid": "session0",
1306 "txnNumber": {
1307 "$numberLong": "1"
1308 },
1309 "startTransaction": null,
1310 "autocommit": false,
1311 "writeConcern": null
1312 },
1313 "command_name": "abortTransaction",
1314 "database_name": "admin"
1315 }
1316 },
1317 {
1318 "command_started_event": {
1319 "command": {
1320 "abortTransaction": 1,
1321 "lsid": "session0",
1322 "txnNumber": {
1323 "$numberLong": "1"
1324 },
1325 "startTransaction": null,
1326 "autocommit": false,
1327 "writeConcern": null
1328 },
1329 "command_name": "abortTransaction",
1330 "database_name": "admin"
1331 }
1332 }
1333 ],
1334 "outcome": {
1335 "collection": {
1336 "data": []
1337 }
1338 }
1339 },
1340 {
1341 "description": "abortTransaction succeeds after SocketException",
1342 "failPoint": {
1343 "configureFailPoint": "failCommand",
1344 "mode": {
1345 "times": 1
1346 },
1347 "data": {
1348 "failCommands": [
1349 "abortTransaction"
1350 ],
1351 "errorCode": 9001,
1352 "errorLabels": [
1353 "RetryableWriteError"
1354 ],
1355 "closeConnection": false
1356 }
1357 },
1358 "operations": [
1359 {
1360 "name": "startTransaction",
1361 "object": "session0"
1362 },
1363 {
1364 "name": "insertOne",
1365 "object": "collection",
1366 "arguments": {
1367 "session": "session0",
1368 "document": {
1369 "_id": 1
1370 }
1371 },
1372 "result": {
1373 "insertedId": 1
1374 }
1375 },
1376 {
1377 "name": "abortTransaction",
1378 "object": "session0"
1379 }
1380 ],
1381 "expectations": [
1382 {
1383 "command_started_event": {
1384 "command": {
1385 "insert": "test",
1386 "documents": [
1387 {
1388 "_id": 1
1389 }
1390 ],
1391 "ordered": true,
1392 "readConcern": null,
1393 "lsid": "session0",
1394 "txnNumber": {
1395 "$numberLong": "1"
1396 },
1397 "startTransaction": true,
1398 "autocommit": false,
1399 "writeConcern": null
1400 },
1401 "command_name": "insert",
1402 "database_name": "transaction-tests"
1403 }
1404 },
1405 {
1406 "command_started_event": {
1407 "command": {
1408 "abortTransaction": 1,
1409 "lsid": "session0",
1410 "txnNumber": {
1411 "$numberLong": "1"
1412 },
1413 "startTransaction": null,
1414 "autocommit": false,
1415 "writeConcern": null
1416 },
1417 "command_name": "abortTransaction",
1418 "database_name": "admin"
1419 }
1420 },
1421 {
1422 "command_started_event": {
1423 "command": {
1424 "abortTransaction": 1,
1425 "lsid": "session0",
1426 "txnNumber": {
1427 "$numberLong": "1"
1428 },
1429 "startTransaction": null,
1430 "autocommit": false,
1431 "writeConcern": null
1432 },
1433 "command_name": "abortTransaction",
1434 "database_name": "admin"
1435 }
1436 }
1437 ],
1438 "outcome": {
1439 "collection": {
1440 "data": []
1441 }
1442 }
1443 },
1444 {
1445 "description": "abortTransaction succeeds after NetworkTimeout",
1446 "failPoint": {
1447 "configureFailPoint": "failCommand",
1448 "mode": {
1449 "times": 1
1450 },
1451 "data": {
1452 "failCommands": [
1453 "abortTransaction"
1454 ],
1455 "errorCode": 89,
1456 "errorLabels": [
1457 "RetryableWriteError"
1458 ],
1459 "closeConnection": false
1460 }
1461 },
1462 "operations": [
1463 {
1464 "name": "startTransaction",
1465 "object": "session0"
1466 },
1467 {
1468 "name": "insertOne",
1469 "object": "collection",
1470 "arguments": {
1471 "session": "session0",
1472 "document": {
1473 "_id": 1
1474 }
1475 },
1476 "result": {
1477 "insertedId": 1
1478 }
1479 },
1480 {
1481 "name": "abortTransaction",
1482 "object": "session0"
1483 }
1484 ],
1485 "expectations": [
1486 {
1487 "command_started_event": {
1488 "command": {
1489 "insert": "test",
1490 "documents": [
1491 {
1492 "_id": 1
1493 }
1494 ],
1495 "ordered": true,
1496 "readConcern": null,
1497 "lsid": "session0",
1498 "txnNumber": {
1499 "$numberLong": "1"
1500 },
1501 "startTransaction": true,
1502 "autocommit": false,
1503 "writeConcern": null
1504 },
1505 "command_name": "insert",
1506 "database_name": "transaction-tests"
1507 }
1508 },
1509 {
1510 "command_started_event": {
1511 "command": {
1512 "abortTransaction": 1,
1513 "lsid": "session0",
1514 "txnNumber": {
1515 "$numberLong": "1"
1516 },
1517 "startTransaction": null,
1518 "autocommit": false,
1519 "writeConcern": null
1520 },
1521 "command_name": "abortTransaction",
1522 "database_name": "admin"
1523 }
1524 },
1525 {
1526 "command_started_event": {
1527 "command": {
1528 "abortTransaction": 1,
1529 "lsid": "session0",
1530 "txnNumber": {
1531 "$numberLong": "1"
1532 },
1533 "startTransaction": null,
1534 "autocommit": false,
1535 "writeConcern": null
1536 },
1537 "command_name": "abortTransaction",
1538 "database_name": "admin"
1539 }
1540 }
1541 ],
1542 "outcome": {
1543 "collection": {
1544 "data": []
1545 }
1546 }
1547 },
1548 {
1549 "description": "abortTransaction succeeds after WriteConcernError InterruptedAtShutdown",
1550 "failPoint": {
1551 "configureFailPoint": "failCommand",
1552 "mode": {
1553 "times": 1
1554 },
1555 "data": {
1556 "failCommands": [
1557 "abortTransaction"
1558 ],
1559 "writeConcernError": {
1560 "code": 11600,
1561 "errorLabels": [
1562 "RetryableWriteError"
1563 ],
1564 "errmsg": "Replication is being shut down"
1565 }
1566 }
1567 },
1568 "operations": [
1569 {
1570 "name": "startTransaction",
1571 "object": "session0",
1572 "arguments": {
1573 "options": {
1574 "writeConcern": {
1575 "w": "majority"
1576 }
1577 }
1578 }
1579 },
1580 {
1581 "name": "insertOne",
1582 "object": "collection",
1583 "arguments": {
1584 "session": "session0",
1585 "document": {
1586 "_id": 1
1587 }
1588 },
1589 "result": {
1590 "insertedId": 1
1591 }
1592 },
1593 {
1594 "name": "abortTransaction",
1595 "object": "session0"
1596 }
1597 ],
1598 "expectations": [
1599 {
1600 "command_started_event": {
1601 "command": {
1602 "insert": "test",
1603 "documents": [
1604 {
1605 "_id": 1
1606 }
1607 ],
1608 "ordered": true,
1609 "readConcern": null,
1610 "lsid": "session0",
1611 "txnNumber": {
1612 "$numberLong": "1"
1613 },
1614 "startTransaction": true,
1615 "autocommit": false,
1616 "writeConcern": null
1617 },
1618 "command_name": "insert",
1619 "database_name": "transaction-tests"
1620 }
1621 },
1622 {
1623 "command_started_event": {
1624 "command": {
1625 "abortTransaction": 1,
1626 "lsid": "session0",
1627 "txnNumber": {
1628 "$numberLong": "1"
1629 },
1630 "startTransaction": null,
1631 "autocommit": false,
1632 "writeConcern": {
1633 "w": "majority"
1634 }
1635 },
1636 "command_name": "abortTransaction",
1637 "database_name": "admin"
1638 }
1639 },
1640 {
1641 "command_started_event": {
1642 "command": {
1643 "abortTransaction": 1,
1644 "lsid": "session0",
1645 "txnNumber": {
1646 "$numberLong": "1"
1647 },
1648 "startTransaction": null,
1649 "autocommit": false,
1650 "writeConcern": {
1651 "w": "majority"
1652 }
1653 },
1654 "command_name": "abortTransaction",
1655 "database_name": "admin"
1656 }
1657 }
1658 ],
1659 "outcome": {
1660 "collection": {
1661 "data": []
1662 }
1663 }
1664 },
1665 {
1666 "description": "abortTransaction succeeds after WriteConcernError InterruptedDueToReplStateChange",
1667 "failPoint": {
1668 "configureFailPoint": "failCommand",
1669 "mode": {
1670 "times": 1
1671 },
1672 "data": {
1673 "failCommands": [
1674 "abortTransaction"
1675 ],
1676 "writeConcernError": {
1677 "code": 11602,
1678 "errorLabels": [
1679 "RetryableWriteError"
1680 ],
1681 "errmsg": "Replication is being shut down"
1682 }
1683 }
1684 },
1685 "operations": [
1686 {
1687 "name": "startTransaction",
1688 "object": "session0",
1689 "arguments": {
1690 "options": {
1691 "writeConcern": {
1692 "w": "majority"
1693 }
1694 }
1695 }
1696 },
1697 {
1698 "name": "insertOne",
1699 "object": "collection",
1700 "arguments": {
1701 "session": "session0",
1702 "document": {
1703 "_id": 1
1704 }
1705 },
1706 "result": {
1707 "insertedId": 1
1708 }
1709 },
1710 {
1711 "name": "abortTransaction",
1712 "object": "session0"
1713 }
1714 ],
1715 "expectations": [
1716 {
1717 "command_started_event": {
1718 "command": {
1719 "insert": "test",
1720 "documents": [
1721 {
1722 "_id": 1
1723 }
1724 ],
1725 "ordered": true,
1726 "readConcern": null,
1727 "lsid": "session0",
1728 "txnNumber": {
1729 "$numberLong": "1"
1730 },
1731 "startTransaction": true,
1732 "autocommit": false,
1733 "writeConcern": null
1734 },
1735 "command_name": "insert",
1736 "database_name": "transaction-tests"
1737 }
1738 },
1739 {
1740 "command_started_event": {
1741 "command": {
1742 "abortTransaction": 1,
1743 "lsid": "session0",
1744 "txnNumber": {
1745 "$numberLong": "1"
1746 },
1747 "startTransaction": null,
1748 "autocommit": false,
1749 "writeConcern": {
1750 "w": "majority"
1751 }
1752 },
1753 "command_name": "abortTransaction",
1754 "database_name": "admin"
1755 }
1756 },
1757 {
1758 "command_started_event": {
1759 "command": {
1760 "abortTransaction": 1,
1761 "lsid": "session0",
1762 "txnNumber": {
1763 "$numberLong": "1"
1764 },
1765 "startTransaction": null,
1766 "autocommit": false,
1767 "writeConcern": {
1768 "w": "majority"
1769 }
1770 },
1771 "command_name": "abortTransaction",
1772 "database_name": "admin"
1773 }
1774 }
1775 ],
1776 "outcome": {
1777 "collection": {
1778 "data": []
1779 }
1780 }
1781 },
1782 {
1783 "description": "abortTransaction succeeds after WriteConcernError PrimarySteppedDown",
1784 "failPoint": {
1785 "configureFailPoint": "failCommand",
1786 "mode": {
1787 "times": 1
1788 },
1789 "data": {
1790 "failCommands": [
1791 "abortTransaction"
1792 ],
1793 "writeConcernError": {
1794 "code": 189,
1795 "errorLabels": [
1796 "RetryableWriteError"
1797 ],
1798 "errmsg": "Replication is being shut down"
1799 }
1800 }
1801 },
1802 "operations": [
1803 {
1804 "name": "startTransaction",
1805 "object": "session0",
1806 "arguments": {
1807 "options": {
1808 "writeConcern": {
1809 "w": "majority"
1810 }
1811 }
1812 }
1813 },
1814 {
1815 "name": "insertOne",
1816 "object": "collection",
1817 "arguments": {
1818 "session": "session0",
1819 "document": {
1820 "_id": 1
1821 }
1822 },
1823 "result": {
1824 "insertedId": 1
1825 }
1826 },
1827 {
1828 "name": "abortTransaction",
1829 "object": "session0"
1830 }
1831 ],
1832 "expectations": [
1833 {
1834 "command_started_event": {
1835 "command": {
1836 "insert": "test",
1837 "documents": [
1838 {
1839 "_id": 1
1840 }
1841 ],
1842 "ordered": true,
1843 "readConcern": null,
1844 "lsid": "session0",
1845 "txnNumber": {
1846 "$numberLong": "1"
1847 },
1848 "startTransaction": true,
1849 "autocommit": false,
1850 "writeConcern": null
1851 },
1852 "command_name": "insert",
1853 "database_name": "transaction-tests"
1854 }
1855 },
1856 {
1857 "command_started_event": {
1858 "command": {
1859 "abortTransaction": 1,
1860 "lsid": "session0",
1861 "txnNumber": {
1862 "$numberLong": "1"
1863 },
1864 "startTransaction": null,
1865 "autocommit": false,
1866 "writeConcern": {
1867 "w": "majority"
1868 }
1869 },
1870 "command_name": "abortTransaction",
1871 "database_name": "admin"
1872 }
1873 },
1874 {
1875 "command_started_event": {
1876 "command": {
1877 "abortTransaction": 1,
1878 "lsid": "session0",
1879 "txnNumber": {
1880 "$numberLong": "1"
1881 },
1882 "startTransaction": null,
1883 "autocommit": false,
1884 "writeConcern": {
1885 "w": "majority"
1886 }
1887 },
1888 "command_name": "abortTransaction",
1889 "database_name": "admin"
1890 }
1891 }
1892 ],
1893 "outcome": {
1894 "collection": {
1895 "data": []
1896 }
1897 }
1898 },
1899 {
1900 "description": "abortTransaction succeeds after WriteConcernError ShutdownInProgress",
1901 "failPoint": {
1902 "configureFailPoint": "failCommand",
1903 "mode": {
1904 "times": 1
1905 },
1906 "data": {
1907 "failCommands": [
1908 "abortTransaction"
1909 ],
1910 "writeConcernError": {
1911 "code": 91,
1912 "errorLabels": [
1913 "RetryableWriteError"
1914 ],
1915 "errmsg": "Replication is being shut down"
1916 }
1917 }
1918 },
1919 "operations": [
1920 {
1921 "name": "startTransaction",
1922 "object": "session0",
1923 "arguments": {
1924 "options": {
1925 "writeConcern": {
1926 "w": "majority"
1927 }
1928 }
1929 }
1930 },
1931 {
1932 "name": "insertOne",
1933 "object": "collection",
1934 "arguments": {
1935 "session": "session0",
1936 "document": {
1937 "_id": 1
1938 }
1939 },
1940 "result": {
1941 "insertedId": 1
1942 }
1943 },
1944 {
1945 "name": "abortTransaction",
1946 "object": "session0"
1947 }
1948 ],
1949 "expectations": [
1950 {
1951 "command_started_event": {
1952 "command": {
1953 "insert": "test",
1954 "documents": [
1955 {
1956 "_id": 1
1957 }
1958 ],
1959 "ordered": true,
1960 "readConcern": null,
1961 "lsid": "session0",
1962 "txnNumber": {
1963 "$numberLong": "1"
1964 },
1965 "startTransaction": true,
1966 "autocommit": false,
1967 "writeConcern": null
1968 },
1969 "command_name": "insert",
1970 "database_name": "transaction-tests"
1971 }
1972 },
1973 {
1974 "command_started_event": {
1975 "command": {
1976 "abortTransaction": 1,
1977 "lsid": "session0",
1978 "txnNumber": {
1979 "$numberLong": "1"
1980 },
1981 "startTransaction": null,
1982 "autocommit": false,
1983 "writeConcern": {
1984 "w": "majority"
1985 }
1986 },
1987 "command_name": "abortTransaction",
1988 "database_name": "admin"
1989 }
1990 },
1991 {
1992 "command_started_event": {
1993 "command": {
1994 "abortTransaction": 1,
1995 "lsid": "session0",
1996 "txnNumber": {
1997 "$numberLong": "1"
1998 },
1999 "startTransaction": null,
2000 "autocommit": false,
2001 "writeConcern": {
2002 "w": "majority"
2003 }
2004 },
2005 "command_name": "abortTransaction",
2006 "database_name": "admin"
2007 }
2008 }
2009 ],
2010 "outcome": {
2011 "collection": {
2012 "data": []
2013 }
2014 }
2015 }
2016 ]
2017 }