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>
146 lines
3.5 KiB
JSON
146 lines
3.5 KiB
JSON
{
|
|
"description": "backpressure-network-timeout-error-replicaset",
|
|
"schemaVersion": "1.17",
|
|
"runOnRequirements": [
|
|
{
|
|
"minServerVersion": "4.4",
|
|
"serverless": "forbid",
|
|
"topologies": [
|
|
"replicaset"
|
|
]
|
|
}
|
|
],
|
|
"createEntities": [
|
|
{
|
|
"client": {
|
|
"id": "setupClient",
|
|
"useMultipleMongoses": false
|
|
}
|
|
}
|
|
],
|
|
"initialData": [
|
|
{
|
|
"collectionName": "backpressure-network-timeout-error",
|
|
"databaseName": "sdam-tests",
|
|
"documents": [
|
|
{
|
|
"_id": 1
|
|
},
|
|
{
|
|
"_id": 2
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"description": "apply backpressure on network timeout error during connection establishment",
|
|
"operations": [
|
|
{
|
|
"name": "createEntities",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"entities": [
|
|
{
|
|
"client": {
|
|
"id": "client",
|
|
"useMultipleMongoses": false,
|
|
"observeEvents": [
|
|
"serverDescriptionChangedEvent",
|
|
"poolClearedEvent"
|
|
],
|
|
"uriOptions": {
|
|
"retryWrites": false,
|
|
"heartbeatFrequencyMS": 1000000,
|
|
"appname": "backpressureNetworkTimeoutErrorTest",
|
|
"serverMonitoringMode": "poll",
|
|
"connectTimeoutMS": 250,
|
|
"socketTimeoutMS": 250
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"database": {
|
|
"id": "database",
|
|
"client": "client",
|
|
"databaseName": "sdam-tests"
|
|
}
|
|
},
|
|
{
|
|
"collection": {
|
|
"id": "collection",
|
|
"database": "database",
|
|
"collectionName": "backpressure-network-timeout-error"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "waitForEvent",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"client": "client",
|
|
"event": {
|
|
"serverDescriptionChangedEvent": {
|
|
"newDescription": {
|
|
"type": "RSPrimary"
|
|
}
|
|
}
|
|
},
|
|
"count": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "failPoint",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"client": "setupClient",
|
|
"failPoint": {
|
|
"configureFailPoint": "failCommand",
|
|
"mode": "alwaysOn",
|
|
"data": {
|
|
"failCommands": [
|
|
"isMaster",
|
|
"hello"
|
|
],
|
|
"blockConnection": true,
|
|
"blockTimeMS": 500,
|
|
"appName": "backpressureNetworkTimeoutErrorTest"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "insertMany",
|
|
"object": "collection",
|
|
"arguments": {
|
|
"documents": [
|
|
{
|
|
"_id": 3
|
|
},
|
|
{
|
|
"_id": 4
|
|
}
|
|
]
|
|
},
|
|
"expectError": {
|
|
"isError": true,
|
|
"errorLabelsContain": [
|
|
"SystemOverloadedError",
|
|
"RetryableError"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"expectEvents": [
|
|
{
|
|
"client": "client",
|
|
"eventType": "cmap",
|
|
"events": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|