Debian Codegraph @

testdata/transactions/legacy/retryable-abort.yml

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