Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/logging/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Drivers MUST support configuring where log messages should be output, including
> - If the value is "stdout" (case-insensitive), log to stdout.
> - If the value is "stderr" (case-insensitive), log to stderr.
> - Else, if direct logging to files is supported, log to a file at the specified path. If the file already exists, it
> MUST be appended to.
> MUST be appended to.
>
> If the variable is not provided or is set to an invalid value (which could be invalid for any reason, e.g. the path
> does not exist or is not writeable), the driver MUST log to stderr and the driver MAY attempt to warn the user about
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ clear event. We create a setup client to enable the ingress connection establish
connection storm. After the storm, we verify that some of the connections failed to checkout, but that the pool was not
cleared.

This test requires MongoDB 7.0+.
This test requires MongoDB 7.0+. See the
[MongoDB Server Parameters](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.ingressConnectionEstablishmentRateLimiterEnabled)
for more details.

1. Create a test client that listens to CMAP events, with maxConnecting=100. The higher maxConnecting will help ensure
contention for creating connections.
Expand All @@ -205,7 +207,9 @@ This test requires MongoDB 7.0+.

6. Assert that 0 `PoolClearedEvent` occurred.

7. Sleep for 1 second to clear the rate limiter.
7. Ensure that the following steps run at test teardown even if the test fails:

8. Ensure that the following command runs at test teardown even if the test fails.
7.1. Sleep for 1 second to clear the rate limiter.

7.2. Execute the following command:
`client.admin("setParameter", 1, ingressConnectionEstablishmentRateLimiterEnabled=False)`.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ createEntities:
tests:
- description: the server description is not changed on handshake error during minPoolSize population
operations:
- name: failPoint
object: testRunner
arguments:
client: setupClient
failPoint:
configureFailPoint: failCommand
mode:
skip: 1
data:
failCommands:
- hello
- isMaster
appName: authErrorTest
closeConnection: true
- name: createEntities
object: testRunner
arguments:
Expand All @@ -27,20 +41,6 @@ tests:
maxConnecting: 1
serverMonitoringMode: poll
heartbeatFrequencyMS: 1000000
- name: failPoint
object: testRunner
arguments:
client: setupClient
failPoint:
configureFailPoint: failCommand
mode:
skip: 1
data:
failCommands:
- hello
- isMaster
appName: authErrorTest
closeConnection: true
- name: waitForEvent
object: testRunner
arguments:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ initialData: &initialData
documents: []

tests:
- description: Network error on minPoolSize background creation
- description: Server error on minPoolSize background creation
operations:
# Configure the initial monitor handshake to succeed but the
# first or second background minPoolSize establishments to fail.
Expand All @@ -38,7 +38,7 @@ tests:
- hello
- isMaster
appName: SDAMminPoolSizeError
closeConnection: true
errorCode: 91
- name: createEntities
object: testRunner
arguments:
Expand All @@ -54,6 +54,7 @@ tests:
heartbeatFrequencyMS: 10000
appname: SDAMminPoolSizeError
minPoolSize: 10
serverMonitoringMode: poll
serverSelectionTimeoutMS: 1000
- database:
id: &database database
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading