Skip to content

Commit 95d8f78

Browse files
committed
Resync transactions spec tests
1 parent 3da3ab4 commit 95d8f78

15 files changed

+383
-125
lines changed

test/transactions/abort.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@
6464
}
6565
],
6666
"ordered": true,
67-
"readConcern": {
68-
"level": "snapshot"
69-
},
67+
"readConcern": null,
7068
"lsid": "session0",
7169
"txnNumber": {
7270
"$numberLong": "1"
@@ -108,7 +106,6 @@
108106
],
109107
"ordered": true,
110108
"readConcern": {
111-
"level": "snapshot",
112109
"afterClusterTime": 42
113110
},
114111
"lsid": "session0",
@@ -181,9 +178,7 @@
181178
}
182179
],
183180
"ordered": true,
184-
"readConcern": {
185-
"level": "snapshot"
186-
},
181+
"readConcern": null,
187182
"lsid": "session0",
188183
"txnNumber": {
189184
"$numberLong": "1"
@@ -269,9 +264,7 @@
269264
}
270265
],
271266
"ordered": true,
272-
"readConcern": {
273-
"level": "snapshot"
274-
},
267+
"readConcern": null,
275268
"lsid": "session0",
276269
"txnNumber": {
277270
"$numberLong": "1"
@@ -377,9 +370,7 @@
377370
}
378371
],
379372
"ordered": true,
380-
"readConcern": {
381-
"level": "snapshot"
382-
},
373+
"readConcern": null,
383374
"lsid": "session0",
384375
"txnNumber": {
385376
"$numberLong": "1"
@@ -475,9 +466,7 @@
475466
}
476467
],
477468
"ordered": true,
478-
"readConcern": {
479-
"level": "snapshot"
480-
},
469+
"readConcern": null,
481470
"lsid": "session0",
482471
"txnNumber": {
483472
"$numberLong": "1"

test/transactions/auto-start.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@
6969
}
7070
],
7171
"ordered": true,
72-
"readConcern": {
73-
"level": "snapshot"
74-
},
72+
"readConcern": null,
7573
"lsid": "session0",
7674
"txnNumber": {
7775
"$numberLong": "1"
@@ -113,7 +111,6 @@
113111
],
114112
"ordered": true,
115113
"readConcern": {
116-
"level": "snapshot",
117114
"afterClusterTime": 42
118115
},
119116
"lsid": "session0",
@@ -233,9 +230,7 @@
233230
}
234231
],
235232
"ordered": true,
236-
"readConcern": {
237-
"level": "snapshot"
238-
},
233+
"readConcern": null,
239234
"lsid": "session0",
240235
"txnNumber": {
241236
"$numberLong": "1"
@@ -333,9 +328,7 @@
333328
}
334329
],
335330
"ordered": true,
336-
"readConcern": {
337-
"level": "snapshot"
338-
},
331+
"readConcern": null,
339332
"lsid": "session0",
340333
"txnNumber": {
341334
"$numberLong": "1"
@@ -377,7 +370,6 @@
377370
],
378371
"ordered": true,
379372
"readConcern": {
380-
"level": "snapshot",
381373
"afterClusterTime": 42
382374
},
383375
"lsid": "session0",
@@ -471,9 +463,7 @@
471463
}
472464
],
473465
"ordered": true,
474-
"readConcern": {
475-
"level": "snapshot"
476-
},
466+
"readConcern": null,
477467
"lsid": "session0",
478468
"txnNumber": {
479469
"$numberLong": "2"
@@ -577,9 +567,7 @@
577567
}
578568
],
579569
"ordered": true,
580-
"readConcern": {
581-
"level": "snapshot"
582-
},
570+
"readConcern": null,
583571
"lsid": "session0",
584572
"txnNumber": {
585573
"$numberLong": "1"

test/transactions/bulk.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@
215215
}
216216
],
217217
"ordered": true,
218-
"readConcern": {
219-
"level": "snapshot"
220-
},
218+
"readConcern": null,
221219
"lsid": "session0",
222220
"txnNumber": {
223221
"$numberLong": "1"
@@ -572,9 +570,7 @@
572570
}
573571
],
574572
"ordered": true,
575-
"readConcern": {
576-
"level": "snapshot"
577-
},
573+
"readConcern": null,
578574
"lsid": "session0",
579575
"txnNumber": {
580576
"$numberLong": "1"

test/transactions/causal-consistency.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
],
115115
"ordered": true,
116116
"readConcern": {
117-
"level": "snapshot",
118117
"afterClusterTime": 42
119118
},
120119
"lsid": "session0",
@@ -269,9 +268,7 @@
269268
}
270269
],
271270
"ordered": true,
272-
"readConcern": {
273-
"level": "snapshot"
274-
},
271+
"readConcern": null,
275272
"lsid": "session0",
276273
"txnNumber": {
277274
"$numberLong": "1"

test/transactions/commit.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@
6464
}
6565
],
6666
"ordered": true,
67-
"readConcern": {
68-
"level": "snapshot"
69-
},
67+
"readConcern": null,
7068
"lsid": "session0",
7169
"txnNumber": {
7270
"$numberLong": "1"
@@ -108,7 +106,6 @@
108106
],
109107
"ordered": true,
110108
"readConcern": {
111-
"level": "snapshot",
112109
"afterClusterTime": 42
113110
},
114111
"lsid": "session0",
@@ -203,9 +200,7 @@
203200
}
204201
],
205202
"ordered": true,
206-
"readConcern": {
207-
"level": "snapshot"
208-
},
203+
"readConcern": null,
209204
"lsid": "session0",
210205
"txnNumber": {
211206
"$numberLong": "1"

test/transactions/delete.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@
8585
}
8686
],
8787
"ordered": true,
88-
"readConcern": {
89-
"level": "snapshot"
90-
},
88+
"readConcern": null,
9189
"lsid": "session0",
9290
"txnNumber": {
9391
"$numberLong": "1"
@@ -250,9 +248,7 @@
250248
}
251249
],
252250
"ordered": true,
253-
"readConcern": {
254-
"level": "snapshot"
255-
},
251+
"readConcern": null,
256252
"lsid": "session0",
257253
"txnNumber": {
258254
"$numberLong": "1"

test/transactions/findOneAndDelete.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@
6565
"stmtId": 0,
6666
"startTransaction": true,
6767
"autocommit": false,
68-
"readConcern": {
69-
"level": "snapshot"
70-
},
68+
"readConcern": null,
7169
"writeConcern": null
7270
},
7371
"command_name": "findAndModify",
@@ -135,10 +133,8 @@
135133
"name": "startTransaction",
136134
"arguments": {
137135
"session": "session0",
138-
"options": {
139-
"writeConcern": {
140-
"w": "majority"
141-
}
136+
"writeConcern": {
137+
"w": "majority"
142138
}
143139
}
144140
},
@@ -180,9 +176,7 @@
180176
"stmtId": 0,
181177
"startTransaction": true,
182178
"autocommit": false,
183-
"readConcern": {
184-
"level": "snapshot"
185-
},
179+
"readConcern": null,
186180
"writeConcern": null
187181
},
188182
"command_name": "findAndModify",

test/transactions/findOneAndReplace.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@
8080
"stmtId": 0,
8181
"startTransaction": true,
8282
"autocommit": false,
83-
"readConcern": {
84-
"level": "snapshot"
85-
},
83+
"readConcern": null,
8684
"writeConcern": null
8785
},
8886
"command_name": "findAndModify",
@@ -214,9 +212,7 @@
214212
"stmtId": 0,
215213
"startTransaction": true,
216214
"autocommit": false,
217-
"readConcern": {
218-
"level": "snapshot"
219-
},
215+
"readConcern": null,
220216
"writeConcern": null
221217
},
222218
"command_name": "findAndModify",

test/transactions/findOneAndUpdate.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@
148148
"stmtId": 0,
149149
"startTransaction": true,
150150
"autocommit": false,
151-
"readConcern": {
152-
"level": "snapshot"
153-
},
151+
"readConcern": null,
154152
"writeConcern": null
155153
},
156154
"command_name": "findAndModify",
@@ -224,7 +222,6 @@
224222
"startTransaction": true,
225223
"autocommit": false,
226224
"readConcern": {
227-
"level": "snapshot",
228225
"afterClusterTime": 42
229226
},
230227
"writeConcern": null
@@ -272,7 +269,6 @@
272269
"startTransaction": true,
273270
"autocommit": false,
274271
"readConcern": {
275-
"level": "snapshot",
276272
"afterClusterTime": 42
277273
},
278274
"writeConcern": null
@@ -384,9 +380,7 @@
384380
"stmtId": 0,
385381
"startTransaction": true,
386382
"autocommit": false,
387-
"readConcern": {
388-
"level": "snapshot"
389-
},
383+
"readConcern": null,
390384
"writeConcern": null
391385
},
392386
"command_name": "findAndModify",

test/transactions/insert.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@
9696
}
9797
],
9898
"ordered": true,
99-
"readConcern": {
100-
"level": "snapshot"
101-
},
99+
"readConcern": null,
102100
"lsid": "session0",
103101
"txnNumber": {
104102
"$numberLong": "1"
@@ -188,7 +186,6 @@
188186
],
189187
"ordered": true,
190188
"readConcern": {
191-
"level": "snapshot",
192189
"afterClusterTime": 42
193190
},
194191
"lsid": "session0",
@@ -314,9 +311,7 @@
314311
}
315312
],
316313
"ordered": true,
317-
"readConcern": {
318-
"level": "snapshot"
319-
},
314+
"readConcern": null,
320315
"lsid": "session0",
321316
"txnNumber": {
322317
"$numberLong": "1"

0 commit comments

Comments
 (0)