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 @@ -85,7 +85,7 @@
}
},
{
"description": "Mark server unknown on network timeout application error (beforeHandshakeCompletes)",
"description": "Ignore network timeout application error (beforeHandshakeCompletes)",
"applicationErrors": [
{
"address": "a:27017",
Expand All @@ -97,14 +97,22 @@
"outcome": {
"servers": {
"a:27017": {
"type": "Unknown",
"topologyVersion": null,
"type": "RSPrimary",
"setName": "rs",
"topologyVersion": {
"processId": {
"$oid": "000000000000000000000001"
},
"counter": {
"$numberLong": "1"
}
},
"pool": {
"generation": 1
"generation": 0
}
}
},
"topologyType": "ReplicaSetNoPrimary",
"topologyType": "ReplicaSetWithPrimary",
"logicalSessionTimeoutMinutes": null,
"setName": "rs"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ phases:
type: timeout
outcome: *outcome

- description: Mark server unknown on network timeout application error (beforeHandshakeCompletes)
- description: Ignore network timeout application error (beforeHandshakeCompletes)
# The test runner may need to add the SystemOverloadedError label for the pre-handshake network timeout.
# The SystemOverloadedError label causes the error to be ignored.
applicationErrors:
- address: a:27017
when: beforeHandshakeCompletes
maxWireVersion: 9
type: timeout
outcome:
servers:
a:27017:
type: Unknown
topologyVersion: null
pool:
generation: 1
topologyType: ReplicaSetNoPrimary
logicalSessionTimeoutMinutes: null
setName: rs
outcome: *outcome
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ private void ApplyApplicationError(BsonDocument applicationError)
{
var innerException = CoreExceptionHelper.CreateException("IOExceptionWithTimedOutSocketException");
simulatedException = new MongoConnectionException(connectionId, "Chaos, yet harmony.", innerException);
((MongoConnectionException)simulatedException).AddErrorLabel("SystemOverloadedError");
break;
}
default:
Expand Down
Loading