Debian Codegraph @

testdata/transactions/legacy/retryable-commit-errorLabels.json

raw symbols SCIP
1 {
2 "runOn": [
3 {
4 "minServerVersion": "4.3.1",
5 "topology": [
6 "replicaset",
7 "sharded"
8 ]
9 }
10 ],
11 "database_name": "transaction-tests",
12 "collection_name": "test",
13 "data": [],
14 "tests": [
15 {
16 "description": "commitTransaction does not retry error without RetryableWriteError label",
17 "clientOptions": {
18 "retryWrites": false
19 },
20 "failPoint": {
21 "configureFailPoint": "failCommand",
22 "mode": {
23 "times": 1
24 },
25 "data": {
26 "failCommands": [
27 "commitTransaction"
28 ],
29 "errorCode": 11600,
30 "errorLabels": []
31 }
32 },
33 "operations": [
34 {
35 "name": "startTransaction",
36 "object": "session0"
37 },
38 {
39 "name": "insertOne",
40 "object": "collection",
41 "arguments": {
42 "session": "session0",
43 "document": {
44 "_id": 1
45 }
46 },
47 "result": {
48 "insertedId": 1
49 }
50 },
51 {
52 "name": "commitTransaction",
53 "object": "session0",
54 "result": {
55 "errorLabelsOmit": [
56 "RetryableWriteError",
57 "TransientTransactionError"
58 ]
59 }
60 }
61 ],
62 "expectations": [
63 {
64 "command_started_event": {
65 "command": {
66 "insert": "test",
67 "documents": [
68 {
69 "_id": 1
70 }
71 ],
72 "ordered": true,
73 "readConcern": null,
74 "lsid": "session0",
75 "txnNumber": {
76 "$numberLong": "1"
77 },
78 "startTransaction": true,
79 "autocommit": false,
80 "writeConcern": null
81 },
82 "command_name": "insert",
83 "database_name": "transaction-tests"
84 }
85 },
86 {
87 "command_started_event": {
88 "command": {
89 "commitTransaction": 1,
90 "lsid": "session0",
91 "txnNumber": {
92 "$numberLong": "1"
93 },
94 "startTransaction": null,
95 "autocommit": false,
96 "writeConcern": null
97 },
98 "command_name": "commitTransaction",
99 "database_name": "admin"
100 }
101 }
102 ],
103 "outcome": {
104 "collection": {
105 "data": []
106 }
107 }
108 },
109 {
110 "description": "commitTransaction retries once with RetryableWriteError from server",
111 "clientOptions": {
112 "retryWrites": false
113 },
114 "failPoint": {
115 "configureFailPoint": "failCommand",
116 "mode": {
117 "times": 1
118 },
119 "data": {
120 "failCommands": [
121 "commitTransaction"
122 ],
123 "errorCode": 112,
124 "errorLabels": [
125 "RetryableWriteError"
126 ]
127 }
128 },
129 "operations": [
130 {
131 "name": "startTransaction",
132 "object": "session0"
133 },
134 {
135 "name": "insertOne",
136 "object": "collection",
137 "arguments": {
138 "session": "session0",
139 "document": {
140 "_id": 1
141 }
142 },
143 "result": {
144 "insertedId": 1
145 }
146 },
147 {
148 "name": "commitTransaction",
149 "object": "session0"
150 }
151 ],
152 "expectations": [
153 {
154 "command_started_event": {
155 "command": {
156 "insert": "test",
157 "documents": [
158 {
159 "_id": 1
160 }
161 ],
162 "ordered": true,
163 "readConcern": null,
164 "lsid": "session0",
165 "txnNumber": {
166 "$numberLong": "1"
167 },
168 "startTransaction": true,
169 "autocommit": false,
170 "writeConcern": null
171 },
172 "command_name": "insert",
173 "database_name": "transaction-tests"
174 }
175 },
176 {
177 "command_started_event": {
178 "command": {
179 "commitTransaction": 1,
180 "lsid": "session0",
181 "txnNumber": {
182 "$numberLong": "1"
183 },
184 "startTransaction": null,
185 "autocommit": false,
186 "writeConcern": null
187 },
188 "command_name": "commitTransaction",
189 "database_name": "admin"
190 }
191 },
192 {
193 "command_started_event": {
194 "command": {
195 "commitTransaction": 1,
196 "lsid": "session0",
197 "txnNumber": {
198 "$numberLong": "1"
199 },
200 "startTransaction": null,
201 "autocommit": false,
202 "writeConcern": {
203 "w": "majority",
204 "wtimeout": 10000
205 }
206 },
207 "command_name": "commitTransaction",
208 "database_name": "admin"
209 }
210 }
211 ],
212 "outcome": {
213 "collection": {
214 "data": [
215 {
216 "_id": 1
217 }
218 ]
219 }
220 }
221 }
222 ]
223 }