Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@
}
},
"result": {
"errorCodeName": "DuplicateKey",
"errorLabelsOmit": [
"TransientTransactionError",
"UnknownTransactionCommitResult"
Expand All @@ -218,7 +217,6 @@
}
},
"result": {
"errorCodeName": "DuplicateKey",
"errorLabelsOmit": [
"TransientTransactionError",
"UnknownTransactionCommitResult"
Expand Down
5 changes: 3 additions & 2 deletions source/transactions-convenient-api/tests/callback-retry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ tests:
session: session0
document: { _id: 1 }
result:
errorCodeName: DuplicateKey
errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
result:
errorCodeName: DuplicateKey
# Don't assert on errorCodeName because (after SERVER-38583) the
# DuplicateKey is reported in writeErrors, not as a top-level
# command error.
errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
expectations:
-
Expand Down
1 change: 0 additions & 1 deletion source/transactions/tests/abort.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@
}
},
"result": {
"errorCodeName": "DuplicateKey",
"errorLabelsOmit": [
"TransientTransactionError",
"UnknownTransactionCommitResult"
Expand Down
4 changes: 3 additions & 1 deletion source/transactions/tests/abort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ tests:
document:
_id: 1
result:
errorCodeName: DuplicateKey
# Don't assert on errorCodeName because (after SERVER-38583) the
# DuplicateKey is reported in writeErrors, not as a top-level
# command error.
errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
# Make sure the server aborted the transaction.
- name: insertOne
Expand Down
1 change: 0 additions & 1 deletion source/transactions/tests/error-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
]
},
"result": {
"errorCodeName": "DuplicateKey",
"errorLabelsOmit": [
"TransientTransactionError",
"UnknownTransactionCommitResult"
Expand Down
4 changes: 3 additions & 1 deletion source/transactions/tests/error-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ tests:
- _id: 1
- _id: 1
result:
errorCodeName: DuplicateKey
# Don't assert on errorCodeName because (after SERVER-38583) the
# DuplicateKey is reported in writeErrors, not as a top-level
# command error.
errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
- name: abortTransaction
object: session0
Expand Down