Skip to content

Commit 7a57ca1

Browse files
authored
CSHARP-5724: [Unified test runner] Introduce optin setting to await for MinPoolSize population (#1774)
1 parent ff73cb7 commit 7a57ca1

22 files changed

+271
-53
lines changed

specifications/client-side-operations-timeout/tests/command-execution.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "timeoutMS behaves correctly during command execution",
3-
"schemaVersion": "1.9",
3+
"schemaVersion": "1.26",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "4.4.7",
@@ -69,8 +69,10 @@
6969
"appName": "reduceMaxTimeMSTest",
7070
"w": 1,
7171
"timeoutMS": 500,
72-
"heartbeatFrequencyMS": 500
72+
"heartbeatFrequencyMS": 500,
73+
"minPoolSize": 1
7374
},
75+
"awaitMinPoolSizeMS": 10000,
7476
"observeEvents": [
7577
"commandStartedEvent"
7678
]
@@ -185,8 +187,10 @@
185187
"appName": "rttTooHighTest",
186188
"w": 1,
187189
"timeoutMS": 10,
188-
"heartbeatFrequencyMS": 500
190+
"heartbeatFrequencyMS": 500,
191+
"minPoolSize": 1
189192
},
193+
"awaitMinPoolSizeMS": 10000,
190194
"observeEvents": [
191195
"commandStartedEvent"
192196
]
@@ -316,8 +320,10 @@
316320
"appName": "reduceMaxTimeMSTest",
317321
"w": 1,
318322
"timeoutMS": 90,
319-
"heartbeatFrequencyMS": 100000
323+
"heartbeatFrequencyMS": 100000,
324+
"minPoolSize": 1
320325
},
326+
"awaitMinPoolSizeMS": 10000,
321327
"observeEvents": [
322328
"commandStartedEvent"
323329
]

specifications/client-side-operations-timeout/tests/command-execution.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: "timeoutMS behaves correctly during command execution"
22

3-
schemaVersion: "1.9"
3+
schemaVersion: "1.26"
44

55
runOnRequirements:
66
# Require SERVER-49336 for failCommand + appName on the initial handshake.
@@ -56,6 +56,8 @@ tests:
5656
w: 1 # Override server's w:majority default to speed up the test.
5757
timeoutMS: 500
5858
heartbeatFrequencyMS: 500
59+
minPoolSize: 1
60+
awaitMinPoolSizeMS: 10000
5961
observeEvents:
6062
- commandStartedEvent
6163
- database:
@@ -127,6 +129,8 @@ tests:
127129
w: 1 # Override server's w:majority default to speed up the test.
128130
timeoutMS: 10
129131
heartbeatFrequencyMS: 500
132+
minPoolSize: 1
133+
awaitMinPoolSizeMS: 10000
130134
observeEvents:
131135
- commandStartedEvent
132136
- database:
@@ -210,6 +214,8 @@ tests:
210214
w: 1 # Override server's w:majority default to speed up the test.
211215
timeoutMS: 90
212216
heartbeatFrequencyMS: 100000 # Override heartbeatFrequencyMS to ensure only 1 RTT is recorded.
217+
minPoolSize: 1
218+
awaitMinPoolSizeMS: 10000
213219
observeEvents:
214220
- commandStartedEvent
215221
- database:

specifications/client-side-operations-timeout/tests/convenient-transactions.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "timeoutMS behaves correctly for the withTransaction API",
3-
"schemaVersion": "1.9",
3+
"schemaVersion": "1.26",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "4.4",
@@ -21,8 +21,10 @@
2121
"client": {
2222
"id": "client",
2323
"uriOptions": {
24-
"timeoutMS": 500
24+
"timeoutMS": 500,
25+
"minPoolSize": 1
2526
},
27+
"awaitMinPoolSizeMS": 10000,
2628
"useMultipleMongoses": false,
2729
"observeEvents": [
2830
"commandStartedEvent"

specifications/client-side-operations-timeout/tests/convenient-transactions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: "timeoutMS behaves correctly for the withTransaction API"
22

3-
schemaVersion: "1.9"
3+
schemaVersion: "1.26"
44

55
runOnRequirements:
66
- minServerVersion: "4.4"
@@ -14,6 +14,8 @@ createEntities:
1414
id: &client client
1515
uriOptions:
1616
timeoutMS: 500
17+
minPoolSize: 1
18+
awaitMinPoolSizeMS: 10000
1719
useMultipleMongoses: false
1820
observeEvents:
1921
- commandStartedEvent

specifications/client-side-operations-timeout/tests/error-transformations.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "MaxTimeMSExpired server errors are transformed into a custom timeout error",
3-
"schemaVersion": "1.9",
3+
"schemaVersion": "1.26",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "4.0",
@@ -26,8 +26,10 @@
2626
"client": {
2727
"id": "client",
2828
"uriOptions": {
29-
"timeoutMS": 250
29+
"timeoutMS": 250,
30+
"minPoolSize": 1
3031
},
32+
"awaitMinPoolSizeMS": 10000,
3133
"useMultipleMongoses": false,
3234
"observeEvents": [
3335
"commandStartedEvent"

specifications/client-side-operations-timeout/tests/error-transformations.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: "MaxTimeMSExpired server errors are transformed into a custom timeout error"
22

3-
schemaVersion: "1.9"
3+
schemaVersion: "1.26"
44

55
# failCommand is available on 4.0 for replica sets and 4.2 for sharded clusters.
66
runOnRequirements:
@@ -17,6 +17,8 @@ createEntities:
1717
id: &client client
1818
uriOptions:
1919
timeoutMS: 250
20+
minPoolSize: 1
21+
awaitMinPoolSizeMS: 10000
2022
useMultipleMongoses: false
2123
observeEvents:
2224
- commandStartedEvent

0 commit comments

Comments
 (0)