Skip to content

Commit b6a1b62

Browse files
committed
DRIVERS-3282: Introduce optin setting to await for MinPoolSize population
1 parent 3dc84d1 commit b6a1b62

22 files changed

+1426
-60
lines changed

source/client-side-operations-timeout/etc/templates/global-timeoutMS.yml.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
description: "timeoutMS can be configured on a MongoClient"
44

5-
schemaVersion: "1.9"
5+
schemaVersion: "1.26"
66

77
runOnRequirements:
88
- minServerVersion: "4.4"
@@ -40,6 +40,8 @@ tests:
4040
id: &client client
4141
uriOptions:
4242
timeoutMS: 250
43+
minPoolSize: 1
44+
awaitMinPoolSizeMS: 10000
4345
useMultipleMongoses: false
4446
observeEvents:
4547
- commandStartedEvent

source/client-side-operations-timeout/etc/templates/retryability-timeoutMS.yml.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
description: "timeoutMS behaves correctly for retryable operations"
44

5-
schemaVersion: "1.9"
5+
schemaVersion: "1.26"
66

77
# failCommand is available on 4.0+ replica sets and 4.2+ sharded clusters.
88
runOnRequirements:
@@ -19,6 +19,8 @@ createEntities:
1919
id: &client client
2020
uriOptions:
2121
timeoutMS: 100
22+
minPoolSize: 1
23+
awaitMinPoolSizeMS: 10000
2224
useMultipleMongoses: false
2325
observeEvents:
2426
- commandStartedEvent

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

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/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:

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

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/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

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

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/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)