Skip to content

Commit

Permalink
Sync test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Feb 9, 2022
1 parent 36ae1c9 commit a3b6e02
Show file tree
Hide file tree
Showing 24 changed files with 82 additions and 82 deletions.
8 changes: 4 additions & 4 deletions test/spec/retryable-writes/legacy/bulkWrite-serverErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@
"failCommands": [
"insert"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["insert"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "bulkWrite"
arguments:
Expand Down
8 changes: 4 additions & 4 deletions test/spec/retryable-writes/legacy/deleteOne-serverErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
"failCommands": [
"delete"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["delete"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "deleteOne"
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
"failCommands": [
"findAndModify"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["findAndModify"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "findOneAndDelete"
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
"failCommands": [
"findAndModify"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["findAndModify"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "findOneAndReplace"
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
"failCommands": [
"findAndModify"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["findAndModify"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "findOneAndUpdate"
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
"failCommands": [
"insert"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["insert"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "insertMany"
arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
"failCommands": [
"update"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["update"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "replaceOne"
arguments:
Expand Down
8 changes: 4 additions & 4 deletions test/spec/retryable-writes/legacy/updateOne-serverErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
"failCommands": [
"update"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["update"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
operation:
name: "updateOne"
arguments:
Expand Down
8 changes: 4 additions & 4 deletions test/spec/transactions/legacy/error-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,12 +963,12 @@
"failCommands": [
"commitTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion test/spec/transactions/legacy/error-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,10 @@ tests:
mode: { times: 2 }
data:
failCommands: ["commitTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]

operations:
- name: startTransaction
Expand Down
8 changes: 4 additions & 4 deletions test/spec/transactions/legacy/mongos-recovery-token.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@
"failCommands": [
"commitTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errmsg": "Replication is being shut down",
"errorLabels": [
"RetryableWriteError"
]
"errmsg": "Replication is being shut down"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec/transactions/legacy/mongos-recovery-token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ tests:
mode: { times: 1 }
data:
failCommands: ["commitTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errmsg: Replication is being shut down
errorLabels: ["RetryableWriteError"]
# The client sees a retryable writeConcernError on the first
# commitTransaction due to the fail point but it actually succeeds on the
# server (SERVER-39346). The retry will succeed both on a new mongos and
Expand Down
24 changes: 12 additions & 12 deletions test/spec/transactions/legacy/retryable-abort.json
Original file line number Diff line number Diff line change
Expand Up @@ -1556,11 +1556,11 @@
"failCommands": [
"abortTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 11600,
"errorLabels": [
"RetryableWriteError"
],
"errmsg": "Replication is being shut down"
}
}
Expand Down Expand Up @@ -1673,11 +1673,11 @@
"failCommands": [
"abortTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 11602,
"errorLabels": [
"RetryableWriteError"
],
"errmsg": "Replication is being shut down"
}
}
Expand Down Expand Up @@ -1790,11 +1790,11 @@
"failCommands": [
"abortTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 189,
"errorLabels": [
"RetryableWriteError"
],
"errmsg": "Replication is being shut down"
}
}
Expand Down Expand Up @@ -1907,11 +1907,11 @@
"failCommands": [
"abortTransaction"
],
"errorLabels": [
"RetryableWriteError"
],
"writeConcernError": {
"code": 91,
"errorLabels": [
"RetryableWriteError"
],
"errmsg": "Replication is being shut down"
}
}
Expand Down
8 changes: 4 additions & 4 deletions test/spec/transactions/legacy/retryable-abort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1021,9 +1021,9 @@ tests:
mode: { times: 1 }
data:
failCommands: ["abortTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 11600
errorLabels: ["RetryableWriteError"]
errmsg: Replication is being shut down

operations:
Expand Down Expand Up @@ -1096,9 +1096,9 @@ tests:
mode: { times: 1 }
data:
failCommands: ["abortTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 11602
errorLabels: ["RetryableWriteError"]
errmsg: Replication is being shut down

operations:
Expand Down Expand Up @@ -1171,9 +1171,9 @@ tests:
mode: { times: 1 }
data:
failCommands: ["abortTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 189
errorLabels: ["RetryableWriteError"]
errmsg: Replication is being shut down

operations:
Expand Down Expand Up @@ -1246,9 +1246,9 @@ tests:
mode: { times: 1 }
data:
failCommands: ["abortTransaction"]
errorLabels: ["RetryableWriteError"]
writeConcernError:
code: 91
errorLabels: ["RetryableWriteError"]
errmsg: Replication is being shut down

operations:
Expand Down
Loading

0 comments on commit a3b6e02

Please sign in to comment.