Co-authored-by: Steven Silvester <steve.silvester@mongodb.com> Co-authored-by: Shane Harvey <shnhrv@gmail.com> Co-authored-by: Steven Silvester <steven.silvester@ieee.org> Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com> Co-authored-by: Casey Clements <caseyclements@users.noreply.github.com> Co-authored-by: Sergey Zelenov <mail@zelenov.su> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
112 lines
2.4 KiB
JSON
112 lines
2.4 KiB
JSON
{
|
|
"description": "tests that connections are returned to the pool on retry attempts for overload errors",
|
|
"schemaVersion": "1.3",
|
|
"runOnRequirements": [
|
|
{
|
|
"minServerVersion": "4.4",
|
|
"topologies": [
|
|
"replicaset",
|
|
"sharded",
|
|
"load-balanced"
|
|
]
|
|
}
|
|
],
|
|
"createEntities": [
|
|
{
|
|
"client": {
|
|
"id": "client",
|
|
"useMultipleMongoses": false,
|
|
"observeEvents": [
|
|
"connectionCheckedOutEvent",
|
|
"connectionCheckedInEvent"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"client": {
|
|
"id": "fail_point_client",
|
|
"useMultipleMongoses": false
|
|
}
|
|
},
|
|
{
|
|
"database": {
|
|
"id": "database",
|
|
"client": "client",
|
|
"databaseName": "backpressure-connection-checkin"
|
|
}
|
|
},
|
|
{
|
|
"collection": {
|
|
"id": "collection",
|
|
"database": "database",
|
|
"collectionName": "coll"
|
|
}
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"description": "overload error retry attempts return connections to the pool",
|
|
"operations": [
|
|
{
|
|
"name": "failPoint",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"client": "fail_point_client",
|
|
"failPoint": {
|
|
"configureFailPoint": "failCommand",
|
|
"mode": "alwaysOn",
|
|
"data": {
|
|
"failCommands": [
|
|
"find"
|
|
],
|
|
"errorLabels": [
|
|
"RetryableError",
|
|
"SystemOverloadedError"
|
|
],
|
|
"errorCode": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "find",
|
|
"object": "collection",
|
|
"arguments": {
|
|
"filter": {}
|
|
},
|
|
"expectError": {
|
|
"isError": true,
|
|
"isClientError": false
|
|
}
|
|
}
|
|
],
|
|
"expectEvents": [
|
|
{
|
|
"client": "client",
|
|
"eventType": "cmap",
|
|
"events": [
|
|
{
|
|
"connectionCheckedOutEvent": {}
|
|
},
|
|
{
|
|
"connectionCheckedInEvent": {}
|
|
},
|
|
{
|
|
"connectionCheckedOutEvent": {}
|
|
},
|
|
{
|
|
"connectionCheckedInEvent": {}
|
|
},
|
|
{
|
|
"connectionCheckedOutEvent": {}
|
|
},
|
|
{
|
|
"connectionCheckedInEvent": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|