mongo 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +39 -14
- data/Rakefile +1 -0
- data/lib/mongo/auth.rb +4 -1
- data/lib/mongo/client.rb +4 -3
- data/lib/mongo/cluster.rb +1 -1
- data/lib/mongo/collection/view/readable.rb +5 -2
- data/lib/mongo/database.rb +1 -0
- data/lib/mongo/error/invalid_server_preference.rb +1 -0
- data/lib/mongo/error/operation_failure.rb +10 -0
- data/lib/mongo/error/parser.rb +10 -0
- data/lib/mongo/event.rb +1 -2
- data/lib/mongo/operation/result.rb +4 -1
- data/lib/mongo/operation/shared/executable_transaction_label.rb +3 -1
- data/lib/mongo/operation/shared/sessions_supported.rb +1 -1
- data/lib/mongo/protocol/msg.rb +1 -1
- data/lib/mongo/protocol/query.rb +2 -2
- data/lib/mongo/retryable.rb +20 -6
- data/lib/mongo/server.rb +6 -0
- data/lib/mongo/server/connection.rb +4 -4
- data/lib/mongo/server/monitor/connection.rb +9 -5
- data/lib/mongo/server_selector/selectable.rb +86 -32
- data/lib/mongo/session.rb +98 -15
- data/lib/mongo/version.rb +1 -1
- data/spec/README.md +85 -0
- data/spec/integration/bulk_insert_spec.rb +1 -1
- data/spec/integration/change_stream_examples_spec.rb +3 -1
- data/spec/integration/change_stream_spec.rb +10 -14
- data/spec/integration/client_construction_spec.rb +1 -0
- data/spec/integration/command_monitoring_spec.rb +37 -1
- data/spec/integration/command_spec.rb +141 -0
- data/spec/integration/connection_spec.rb +4 -2
- data/spec/integration/cursor_reaping_spec.rb +1 -1
- data/spec/integration/docs_examples_spec.rb +1 -1
- data/spec/integration/retryable_writes_spec.rb +33 -42
- data/spec/integration/server_description_spec.rb +3 -3
- data/spec/integration/server_selector_spec.rb +79 -0
- data/spec/lite_spec_helper.rb +4 -2
- data/spec/mongo/address_spec.rb +8 -0
- data/spec/mongo/auth/cr_spec.rb +5 -2
- data/spec/mongo/auth/invalid_mechanism_spec.rb +11 -0
- data/spec/mongo/auth/scram/conversation_spec.rb +3 -2
- data/spec/mongo/auth/scram/negotiation_spec.rb +1 -2
- data/spec/mongo/auth/scram_spec.rb +11 -6
- data/spec/mongo/auth/user/view_spec.rb +13 -6
- data/spec/mongo/bulk_write_spec.rb +81 -104
- data/spec/mongo/client_construction_spec.rb +18 -7
- data/spec/mongo/client_spec.rb +11 -7
- data/spec/mongo/cluster_spec.rb +30 -1
- data/spec/mongo/collection/view/aggregation_spec.rb +18 -10
- data/spec/mongo/collection/view/change_stream_spec.rb +28 -8
- data/spec/mongo/collection/view/map_reduce_spec.rb +24 -10
- data/spec/mongo/collection/view/readable_spec.rb +37 -19
- data/spec/mongo/collection/view/writable_spec.rb +64 -32
- data/spec/mongo/collection/view_spec.rb +4 -2
- data/spec/mongo/collection_spec.rb +163 -73
- data/spec/mongo/cursor_spec.rb +5 -2
- data/spec/mongo/database_spec.rb +41 -19
- data/spec/mongo/error/no_server_available_spec.rb +1 -1
- data/spec/mongo/error/parser_spec.rb +29 -0
- data/spec/mongo/grid/stream/write_spec.rb +2 -1
- data/spec/mongo/index/view_spec.rb +42 -24
- data/spec/mongo/operation/delete/op_msg_spec.rb +11 -7
- data/spec/mongo/operation/insert/op_msg_spec.rb +10 -6
- data/spec/mongo/operation/update/op_msg_spec.rb +10 -6
- data/spec/mongo/protocol/compressed_spec.rb +1 -1
- data/spec/mongo/protocol/msg_spec.rb +1 -1
- data/spec/mongo/server/app_metadata_spec.rb +2 -1
- data/spec/mongo/server/connection_auth_spec.rb +1 -1
- data/spec/mongo/server/monitor/connection_spec.rb +42 -0
- data/spec/mongo/server_selector_spec.rb +17 -0
- data/spec/mongo/server_spec.rb +110 -0
- data/spec/mongo/session/session_pool_spec.rb +1 -1
- data/spec/mongo/session_spec.rb +1 -1
- data/spec/mongo/session_transaction_spec.rb +162 -1
- data/spec/mongo/socket/ssl_spec.rb +14 -7
- data/spec/mongo/uri/srv_protocol_spec.rb +41 -34
- data/spec/spec_helper.rb +3 -191
- data/spec/spec_tests/change_streams_spec.rb +3 -6
- data/spec/spec_tests/data/transactions/abort.yml +3 -1
- data/spec/spec_tests/data/transactions/commit.yml +4 -3
- data/spec/spec_tests/data/transactions/error-labels.yml +17 -13
- data/spec/spec_tests/data/transactions/read-concern.yml +611 -0
- data/spec/spec_tests/data/transactions/retryable-commit.yml +126 -21
- data/spec/spec_tests/data/transactions_api/callback-aborts.yml +42 -39
- data/spec/spec_tests/data/transactions_api/callback-commits.yml +52 -50
- data/spec/spec_tests/data/transactions_api/callback-retry.yml +33 -31
- data/spec/spec_tests/data/transactions_api/commit-retry.yml +42 -39
- data/spec/spec_tests/data/transactions_api/commit-transienttransactionerror-4.2.yml +13 -12
- data/spec/spec_tests/data/transactions_api/commit-transienttransactionerror.yml +15 -26
- data/spec/spec_tests/data/transactions_api/commit-writeconcernerror.yml +25 -33
- data/spec/spec_tests/data/transactions_api/commit.yml +44 -42
- data/spec/spec_tests/data/transactions_api/transaction-options.yml +25 -23
- data/spec/spec_tests/max_staleness_spec.rb +2 -0
- data/spec/spec_tests/retryable_writes_spec.rb +2 -6
- data/spec/spec_tests/sdam_spec.rb +2 -0
- data/spec/spec_tests/server_selection_spec.rb +3 -0
- data/spec/spec_tests/transactions_api_spec.rb +7 -1
- data/spec/spec_tests/transactions_spec.rb +6 -0
- data/spec/spec_tests/uri_options_spec.rb +4 -26
- data/spec/support/certificates/ca.pem +21 -16
- data/spec/support/certificates/client.pem +90 -90
- data/spec/support/certificates/client_cert.pem +21 -20
- data/spec/support/certificates/client_key.pem +27 -28
- data/spec/support/certificates/client_key_encrypted.pem +26 -26
- data/spec/support/certificates/crl.pem +10 -8
- data/spec/support/certificates/crl_client_revoked.pem +11 -10
- data/spec/support/certificates/server.pem +48 -33
- data/spec/support/change_streams.rb +12 -32
- data/spec/support/client_registry.rb +12 -1
- data/spec/support/cluster_config.rb +48 -2
- data/spec/support/common_shortcuts.rb +73 -7
- data/spec/support/connection_string.rb +0 -3
- data/spec/support/constraints.rb +87 -22
- data/spec/support/crud.rb +2 -1
- data/spec/support/shared/server_selector.rb +0 -28
- data/spec/support/shared/session.rb +25 -14
- data/spec/support/transactions.rb +4 -8
- data/spec/support/transactions/operation.rb +26 -4
- data/spec/support/transactions/verifier.rb +5 -2
- metadata +496 -488
- metadata.gz.sig +5 -2
- data/spec/support/certificates/password_protected.pem +0 -51
@@ -72,7 +72,8 @@ tests:
|
|
72
72
|
$numberLong: "1"
|
73
73
|
startTransaction:
|
74
74
|
autocommit: false
|
75
|
-
|
75
|
+
# commitTransaction applies w:majority on retries
|
76
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
76
77
|
command_name: commitTransaction
|
77
78
|
database_name: admin
|
78
79
|
- command_started_event:
|
@@ -83,7 +84,99 @@ tests:
|
|
83
84
|
$numberLong: "1"
|
84
85
|
startTransaction:
|
85
86
|
autocommit: false
|
87
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
88
|
+
command_name: commitTransaction
|
89
|
+
database_name: admin
|
90
|
+
|
91
|
+
outcome:
|
92
|
+
collection:
|
93
|
+
data:
|
94
|
+
- _id: 1
|
95
|
+
|
96
|
+
- description: commitTransaction applies majority write concern on retries
|
97
|
+
|
98
|
+
clientOptions:
|
99
|
+
retryWrites: false
|
100
|
+
|
101
|
+
failPoint:
|
102
|
+
configureFailPoint: failCommand
|
103
|
+
mode: { times: 2 }
|
104
|
+
data:
|
105
|
+
failCommands: ["commitTransaction"]
|
106
|
+
closeConnection: true
|
107
|
+
|
108
|
+
operations:
|
109
|
+
- name: startTransaction
|
110
|
+
object: session0
|
111
|
+
arguments:
|
112
|
+
options:
|
113
|
+
writeConcern: { w: 2, j: true, wtimeout: 5000 }
|
114
|
+
- name: insertOne
|
115
|
+
object: collection
|
116
|
+
arguments:
|
117
|
+
session: session0
|
118
|
+
document:
|
119
|
+
_id: 1
|
120
|
+
result:
|
121
|
+
insertedId: 1
|
122
|
+
# First call to commit fails after a single retry attempt.
|
123
|
+
- name: commitTransaction
|
124
|
+
object: session0
|
125
|
+
result:
|
126
|
+
errorLabelsContain: ["UnknownTransactionCommitResult"]
|
127
|
+
errorLabelsOmit: ["TransientTransactionError"]
|
128
|
+
# Second call to commit succeeds because the failpoint was disabled.
|
129
|
+
- name: commitTransaction
|
130
|
+
object: session0
|
131
|
+
|
132
|
+
expectations:
|
133
|
+
- command_started_event:
|
134
|
+
command:
|
135
|
+
insert: *collection_name
|
136
|
+
documents:
|
137
|
+
- _id: 1
|
138
|
+
ordered: true
|
139
|
+
readConcern:
|
140
|
+
lsid: session0
|
141
|
+
txnNumber:
|
142
|
+
$numberLong: "1"
|
143
|
+
startTransaction: true
|
144
|
+
autocommit: false
|
86
145
|
writeConcern:
|
146
|
+
command_name: insert
|
147
|
+
database_name: *database_name
|
148
|
+
- command_started_event:
|
149
|
+
command:
|
150
|
+
commitTransaction: 1
|
151
|
+
lsid: session0
|
152
|
+
txnNumber:
|
153
|
+
$numberLong: "1"
|
154
|
+
startTransaction:
|
155
|
+
autocommit: false
|
156
|
+
writeConcern: { w: 2, j: true, wtimeout: 5000 }
|
157
|
+
command_name: commitTransaction
|
158
|
+
database_name: admin
|
159
|
+
- command_started_event:
|
160
|
+
command:
|
161
|
+
commitTransaction: 1
|
162
|
+
lsid: session0
|
163
|
+
txnNumber:
|
164
|
+
$numberLong: "1"
|
165
|
+
startTransaction:
|
166
|
+
autocommit: false
|
167
|
+
# commitTransaction applies w:majority on retries
|
168
|
+
writeConcern: { w: majority, j: true, wtimeout: 5000 }
|
169
|
+
command_name: commitTransaction
|
170
|
+
database_name: admin
|
171
|
+
- command_started_event:
|
172
|
+
command:
|
173
|
+
commitTransaction: 1
|
174
|
+
lsid: session0
|
175
|
+
txnNumber:
|
176
|
+
$numberLong: "1"
|
177
|
+
startTransaction:
|
178
|
+
autocommit: false
|
179
|
+
writeConcern: { w: majority, j: true, wtimeout: 5000 }
|
87
180
|
command_name: commitTransaction
|
88
181
|
database_name: admin
|
89
182
|
|
@@ -274,7 +367,8 @@ tests:
|
|
274
367
|
$numberLong: "1"
|
275
368
|
startTransaction:
|
276
369
|
autocommit: false
|
277
|
-
|
370
|
+
# commitTransaction applies w:majority on retries
|
371
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
278
372
|
command_name: commitTransaction
|
279
373
|
database_name: admin
|
280
374
|
|
@@ -342,7 +436,8 @@ tests:
|
|
342
436
|
$numberLong: "1"
|
343
437
|
startTransaction:
|
344
438
|
autocommit: false
|
345
|
-
|
439
|
+
# commitTransaction applies w:majority on retries
|
440
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
346
441
|
command_name: commitTransaction
|
347
442
|
database_name: admin
|
348
443
|
|
@@ -410,7 +505,8 @@ tests:
|
|
410
505
|
$numberLong: "1"
|
411
506
|
startTransaction:
|
412
507
|
autocommit: false
|
413
|
-
|
508
|
+
# commitTransaction applies w:majority on retries
|
509
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
414
510
|
command_name: commitTransaction
|
415
511
|
database_name: admin
|
416
512
|
|
@@ -478,7 +574,8 @@ tests:
|
|
478
574
|
$numberLong: "1"
|
479
575
|
startTransaction:
|
480
576
|
autocommit: false
|
481
|
-
|
577
|
+
# commitTransaction applies w:majority on retries
|
578
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
482
579
|
command_name: commitTransaction
|
483
580
|
database_name: admin
|
484
581
|
|
@@ -546,7 +643,8 @@ tests:
|
|
546
643
|
$numberLong: "1"
|
547
644
|
startTransaction:
|
548
645
|
autocommit: false
|
549
|
-
|
646
|
+
# commitTransaction applies w:majority on retries
|
647
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
550
648
|
command_name: commitTransaction
|
551
649
|
database_name: admin
|
552
650
|
|
@@ -614,7 +712,8 @@ tests:
|
|
614
712
|
$numberLong: "1"
|
615
713
|
startTransaction:
|
616
714
|
autocommit: false
|
617
|
-
|
715
|
+
# commitTransaction applies w:majority on retries
|
716
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
618
717
|
command_name: commitTransaction
|
619
718
|
database_name: admin
|
620
719
|
|
@@ -682,7 +781,8 @@ tests:
|
|
682
781
|
$numberLong: "1"
|
683
782
|
startTransaction:
|
684
783
|
autocommit: false
|
685
|
-
|
784
|
+
# commitTransaction applies w:majority on retries
|
785
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
686
786
|
command_name: commitTransaction
|
687
787
|
database_name: admin
|
688
788
|
|
@@ -750,7 +850,8 @@ tests:
|
|
750
850
|
$numberLong: "1"
|
751
851
|
startTransaction:
|
752
852
|
autocommit: false
|
753
|
-
|
853
|
+
# commitTransaction applies w:majority on retries
|
854
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
754
855
|
command_name: commitTransaction
|
755
856
|
database_name: admin
|
756
857
|
|
@@ -818,7 +919,8 @@ tests:
|
|
818
919
|
$numberLong: "1"
|
819
920
|
startTransaction:
|
820
921
|
autocommit: false
|
821
|
-
|
922
|
+
# commitTransaction applies w:majority on retries
|
923
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
822
924
|
command_name: commitTransaction
|
823
925
|
database_name: admin
|
824
926
|
|
@@ -886,7 +988,8 @@ tests:
|
|
886
988
|
$numberLong: "1"
|
887
989
|
startTransaction:
|
888
990
|
autocommit: false
|
889
|
-
|
991
|
+
# commitTransaction applies w:majority on retries
|
992
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
890
993
|
command_name: commitTransaction
|
891
994
|
database_name: admin
|
892
995
|
|
@@ -954,7 +1057,8 @@ tests:
|
|
954
1057
|
$numberLong: "1"
|
955
1058
|
startTransaction:
|
956
1059
|
autocommit: false
|
957
|
-
|
1060
|
+
# commitTransaction applies w:majority on retries
|
1061
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
958
1062
|
command_name: commitTransaction
|
959
1063
|
database_name: admin
|
960
1064
|
|
@@ -1022,7 +1126,8 @@ tests:
|
|
1022
1126
|
$numberLong: "1"
|
1023
1127
|
startTransaction:
|
1024
1128
|
autocommit: false
|
1025
|
-
|
1129
|
+
# commitTransaction applies w:majority on retries
|
1130
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
1026
1131
|
command_name: commitTransaction
|
1027
1132
|
database_name: admin
|
1028
1133
|
|
@@ -1096,8 +1201,8 @@ tests:
|
|
1096
1201
|
$numberLong: "1"
|
1097
1202
|
startTransaction:
|
1098
1203
|
autocommit: false
|
1099
|
-
|
1100
|
-
|
1204
|
+
# commitTransaction applies w:majority on retries
|
1205
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
1101
1206
|
command_name: commitTransaction
|
1102
1207
|
database_name: admin
|
1103
1208
|
|
@@ -1171,8 +1276,8 @@ tests:
|
|
1171
1276
|
$numberLong: "1"
|
1172
1277
|
startTransaction:
|
1173
1278
|
autocommit: false
|
1174
|
-
|
1175
|
-
|
1279
|
+
# commitTransaction applies w:majority on retries
|
1280
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
1176
1281
|
command_name: commitTransaction
|
1177
1282
|
database_name: admin
|
1178
1283
|
|
@@ -1246,8 +1351,8 @@ tests:
|
|
1246
1351
|
$numberLong: "1"
|
1247
1352
|
startTransaction:
|
1248
1353
|
autocommit: false
|
1249
|
-
|
1250
|
-
|
1354
|
+
# commitTransaction applies w:majority on retries
|
1355
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
1251
1356
|
command_name: commitTransaction
|
1252
1357
|
database_name: admin
|
1253
1358
|
|
@@ -1321,8 +1426,8 @@ tests:
|
|
1321
1426
|
$numberLong: "1"
|
1322
1427
|
startTransaction:
|
1323
1428
|
autocommit: false
|
1324
|
-
|
1325
|
-
|
1429
|
+
# commitTransaction applies w:majority on retries
|
1430
|
+
writeConcern: { w: majority, wtimeout: 10000 }
|
1326
1431
|
command_name: commitTransaction
|
1327
1432
|
database_name: admin
|
1328
1433
|
|
@@ -11,19 +11,20 @@ tests:
|
|
11
11
|
-
|
12
12
|
name: withTransaction
|
13
13
|
object: session0
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
arguments:
|
15
|
+
callback:
|
16
|
+
operations:
|
17
|
+
-
|
18
|
+
name: insertOne
|
19
|
+
object: collection
|
20
|
+
arguments:
|
21
|
+
session: session0
|
22
|
+
document: { _id: 1 }
|
23
|
+
result:
|
24
|
+
insertedId: 1
|
25
|
+
-
|
26
|
+
name: abortTransaction
|
27
|
+
object: session0
|
27
28
|
expectations:
|
28
29
|
-
|
29
30
|
command_started_event:
|
@@ -64,11 +65,12 @@ tests:
|
|
64
65
|
-
|
65
66
|
name: withTransaction
|
66
67
|
object: session0
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
arguments:
|
69
|
+
callback:
|
70
|
+
operations:
|
71
|
+
-
|
72
|
+
name: abortTransaction
|
73
|
+
object: session0
|
72
74
|
expectations: []
|
73
75
|
outcome:
|
74
76
|
collection:
|
@@ -80,27 +82,28 @@ tests:
|
|
80
82
|
-
|
81
83
|
name: withTransaction
|
82
84
|
object: session0
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
85
|
+
arguments:
|
86
|
+
callback:
|
87
|
+
operations:
|
88
|
+
-
|
89
|
+
name: insertOne
|
90
|
+
object: collection
|
91
|
+
arguments:
|
92
|
+
session: session0
|
93
|
+
document: { _id: 1 }
|
94
|
+
result:
|
95
|
+
insertedId: 1
|
96
|
+
-
|
97
|
+
name: abortTransaction
|
98
|
+
object: session0
|
99
|
+
-
|
100
|
+
name: insertOne
|
101
|
+
object: collection
|
102
|
+
arguments:
|
103
|
+
session: session0
|
104
|
+
document: { _id: 2 }
|
105
|
+
result:
|
106
|
+
insertedId: 2
|
104
107
|
expectations:
|
105
108
|
-
|
106
109
|
command_started_event:
|
@@ -11,27 +11,28 @@ tests:
|
|
11
11
|
-
|
12
12
|
name: withTransaction
|
13
13
|
object: session0
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
14
|
+
arguments:
|
15
|
+
callback:
|
16
|
+
operations:
|
17
|
+
-
|
18
|
+
name: insertOne
|
19
|
+
object: collection
|
20
|
+
arguments:
|
21
|
+
session: session0
|
22
|
+
document: { _id: 1 }
|
23
|
+
result:
|
24
|
+
insertedId: 1
|
25
|
+
-
|
26
|
+
name: insertOne
|
27
|
+
object: collection
|
28
|
+
arguments:
|
29
|
+
session: session0
|
30
|
+
document: { _id: 2 }
|
31
|
+
result:
|
32
|
+
insertedId: 2
|
33
|
+
-
|
34
|
+
name: commitTransaction
|
35
|
+
object: session0
|
35
36
|
expectations:
|
36
37
|
-
|
37
38
|
command_started_event:
|
@@ -90,35 +91,36 @@ tests:
|
|
90
91
|
-
|
91
92
|
name: withTransaction
|
92
93
|
object: session0
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
94
|
+
arguments:
|
95
|
+
callback:
|
96
|
+
operations:
|
97
|
+
-
|
98
|
+
name: insertOne
|
99
|
+
object: collection
|
100
|
+
arguments:
|
101
|
+
session: session0
|
102
|
+
document: { _id: 1 }
|
103
|
+
result:
|
104
|
+
insertedId: 1
|
105
|
+
-
|
106
|
+
name: insertOne
|
107
|
+
object: collection
|
108
|
+
arguments:
|
109
|
+
session: session0
|
110
|
+
document: { _id: 2 }
|
111
|
+
result:
|
112
|
+
insertedId: 2
|
113
|
+
-
|
114
|
+
name: commitTransaction
|
115
|
+
object: session0
|
116
|
+
-
|
117
|
+
name: insertOne
|
118
|
+
object: collection
|
119
|
+
arguments:
|
120
|
+
session: session0
|
121
|
+
document: { _id: 3 }
|
122
|
+
result:
|
123
|
+
insertedId: 3
|
122
124
|
expectations:
|
123
125
|
-
|
124
126
|
command_started_event:
|