Skip to content

Commit 358e757

Browse files
author
Cloud User
committed
resyncing specs 12-01-2025
1 parent 222a55f commit 358e757

File tree

5 files changed

+392
-3
lines changed

5 files changed

+392
-3
lines changed

test/connection_monitoring/pool-create-min-size-error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"isMaster",
1818
"hello"
1919
],
20-
"closeConnection": true,
20+
"errorCode": 91,
2121
"appName": "poolCreateMinSizeErrorTest"
2222
}
2323
},
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"description": "backpressure-network-error-fail",
3+
"schemaVersion": "1.17",
4+
"runOnRequirements": [
5+
{
6+
"minServerVersion": "4.4",
7+
"serverless": "forbid",
8+
"topologies": [
9+
"single",
10+
"replicaset",
11+
"sharded"
12+
]
13+
}
14+
],
15+
"createEntities": [
16+
{
17+
"client": {
18+
"id": "setupClient",
19+
"useMultipleMongoses": false
20+
}
21+
}
22+
],
23+
"initialData": [
24+
{
25+
"collectionName": "backpressure-network-error-fail",
26+
"databaseName": "sdam-tests",
27+
"documents": [
28+
{
29+
"_id": 1
30+
},
31+
{
32+
"_id": 2
33+
}
34+
]
35+
}
36+
],
37+
"tests": [
38+
{
39+
"description": "apply backpressure on network connection errors during connection establishment",
40+
"operations": [
41+
{
42+
"name": "createEntities",
43+
"object": "testRunner",
44+
"arguments": {
45+
"entities": [
46+
{
47+
"client": {
48+
"id": "client",
49+
"useMultipleMongoses": false,
50+
"observeEvents": [
51+
"serverHeartbeatSucceededEvent",
52+
"poolClearedEvent"
53+
],
54+
"uriOptions": {
55+
"retryWrites": false,
56+
"heartbeatFrequencyMS": 1000000,
57+
"serverMonitoringMode": "poll",
58+
"appname": "backpressureNetworkErrorFailTest"
59+
}
60+
}
61+
},
62+
{
63+
"database": {
64+
"id": "database",
65+
"client": "client",
66+
"databaseName": "sdam-tests"
67+
}
68+
},
69+
{
70+
"collection": {
71+
"id": "collection",
72+
"database": "database",
73+
"collectionName": "backpressure-network-error-fail"
74+
}
75+
}
76+
]
77+
}
78+
},
79+
{
80+
"name": "waitForEvent",
81+
"object": "testRunner",
82+
"arguments": {
83+
"client": "client",
84+
"event": {
85+
"serverHeartbeatSucceededEvent": {}
86+
},
87+
"count": 1
88+
}
89+
},
90+
{
91+
"name": "failPoint",
92+
"object": "testRunner",
93+
"arguments": {
94+
"client": "setupClient",
95+
"failPoint": {
96+
"configureFailPoint": "failCommand",
97+
"mode": "alwaysOn",
98+
"data": {
99+
"failCommands": [
100+
"isMaster",
101+
"hello"
102+
],
103+
"appName": "backpressureNetworkErrorFailTest",
104+
"closeConnection": true
105+
}
106+
}
107+
}
108+
},
109+
{
110+
"name": "insertMany",
111+
"object": "collection",
112+
"arguments": {
113+
"documents": [
114+
{
115+
"_id": 3
116+
},
117+
{
118+
"_id": 4
119+
}
120+
]
121+
},
122+
"expectError": {
123+
"isError": true,
124+
"errorLabelsContain": [
125+
"SystemOverloadedError",
126+
"RetryableError"
127+
]
128+
}
129+
}
130+
],
131+
"expectEvents": [
132+
{
133+
"client": "client",
134+
"eventType": "cmap",
135+
"events": []
136+
}
137+
]
138+
}
139+
]
140+
}
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{
2+
"description": "backpressure-network-timeout-error",
3+
"schemaVersion": "1.17",
4+
"runOnRequirements": [
5+
{
6+
"minServerVersion": "4.4",
7+
"serverless": "forbid",
8+
"topologies": [
9+
"single",
10+
"replicaset",
11+
"sharded"
12+
]
13+
}
14+
],
15+
"createEntities": [
16+
{
17+
"client": {
18+
"id": "setupClient",
19+
"useMultipleMongoses": false
20+
}
21+
}
22+
],
23+
"initialData": [
24+
{
25+
"collectionName": "backpressure-network-timeout-error",
26+
"databaseName": "sdam-tests",
27+
"documents": [
28+
{
29+
"_id": 1
30+
},
31+
{
32+
"_id": 2
33+
}
34+
]
35+
}
36+
],
37+
"tests": [
38+
{
39+
"description": "apply backpressure on network timeout error during connection establishment",
40+
"operations": [
41+
{
42+
"name": "createEntities",
43+
"object": "testRunner",
44+
"arguments": {
45+
"entities": [
46+
{
47+
"client": {
48+
"id": "client",
49+
"useMultipleMongoses": false,
50+
"observeEvents": [
51+
"serverDescriptionChangedEvent",
52+
"poolClearedEvent"
53+
],
54+
"uriOptions": {
55+
"retryWrites": false,
56+
"heartbeatFrequencyMS": 1000000,
57+
"appname": "backpressureNetworkTimeoutErrorTest",
58+
"serverMonitoringMode": "poll",
59+
"connectTimeoutMS": 250,
60+
"socketTimeoutMS": 250
61+
}
62+
}
63+
},
64+
{
65+
"database": {
66+
"id": "database",
67+
"client": "client",
68+
"databaseName": "sdam-tests"
69+
}
70+
},
71+
{
72+
"collection": {
73+
"id": "collection",
74+
"database": "database",
75+
"collectionName": "backpressure-network-timeout-error"
76+
}
77+
}
78+
]
79+
}
80+
},
81+
{
82+
"name": "waitForEvent",
83+
"object": "testRunner",
84+
"arguments": {
85+
"client": "client",
86+
"event": {
87+
"serverDescriptionChangedEvent": {}
88+
},
89+
"count": 1
90+
}
91+
},
92+
{
93+
"name": "failPoint",
94+
"object": "testRunner",
95+
"arguments": {
96+
"client": "setupClient",
97+
"failPoint": {
98+
"configureFailPoint": "failCommand",
99+
"mode": "alwaysOn",
100+
"data": {
101+
"failCommands": [
102+
"isMaster",
103+
"hello"
104+
],
105+
"blockConnection": true,
106+
"blockTimeMS": 500,
107+
"appName": "backpressureNetworkTimeoutErrorTest"
108+
}
109+
}
110+
}
111+
},
112+
{
113+
"name": "insertMany",
114+
"object": "collection",
115+
"arguments": {
116+
"documents": [
117+
{
118+
"_id": 3
119+
},
120+
{
121+
"_id": 4
122+
}
123+
]
124+
},
125+
"expectError": {
126+
"isError": true,
127+
"errorLabelsContain": [
128+
"SystemOverloadedError",
129+
"RetryableError"
130+
]
131+
}
132+
}
133+
],
134+
"expectEvents": [
135+
{
136+
"client": "client",
137+
"eventType": "cmap",
138+
"events": []
139+
}
140+
]
141+
}
142+
]
143+
}

0 commit comments

Comments
 (0)