Skip to content

Commit 2cd4b88

Browse files
author
Isabella Siu
committed
GODRIVER-600 Add test that read operations ignore db/collection readConcern in transaction
Change-Id: Id382a5a15e29e0bf11dc6a990bb9bdd02a63b598
1 parent 39d8e41 commit 2cd4b88

File tree

13 files changed

+2290
-22
lines changed

13 files changed

+2290
-22
lines changed

data/transactions/bulk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
},
185185
"result": {
186186
"deletedCount": 4,
187+
"insertedCount": 6,
187188
"insertedIds": {
188189
"0": 1,
189190
"3": 3,

data/transactions/bulk.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ tests:
8484
filter: {_id: {$gte: 6}}
8585
result:
8686
deletedCount: 4
87+
insertedCount: 6
8788
insertedIds: {0: 1, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7}
8889
matchedCount: 7
8990
modifiedCount: 7

data/transactions/error-labels.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@
595595
}
596596
}
597597
],
598+
"cursor": {},
598599
"readConcern": null,
599600
"lsid": "session0",
600601
"txnNumber": {

data/transactions/error-labels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ tests:
361361
pipeline:
362362
- $project:
363363
_id: 1
364+
cursor: {}
364365
readConcern:
365366
lsid: session0
366367
txnNumber:
@@ -825,7 +826,7 @@ tests:
825826
data:
826827
failCommands: ["commitTransaction"]
827828
writeConcernError:
828-
code: 100 # UnsatisfiableWriteConcern/CannotSatisfyWriteConcern
829+
code: 100 # UnsatisfiableWriteConcern
829830
errmsg: Not enough data-bearing nodes
830831

831832
operations:

0 commit comments

Comments
 (0)