Skip to content

Conversation

@blink1073
Copy link
Member

@blink1073 blink1073 commented Nov 11, 2025

Replaces #1852

Please complete the following before merging:

  • Is the relevant DRIVERS ticket in the PR title?

data:
failCommands: ["isMaster","hello"]
closeConnection: true
blockConnection: true
Copy link
Member Author

@blink1073 blink1073 Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we are discouraged from changing existing tests, these test still pass without the backpressure changes, and this avoids adding a new runOnRequirement.

https://spruce.mongodb.com/version/6914e629b2e3e30007b7c384/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

@BorisDog BorisDog requested review from papafe and removed request for papafe November 12, 2025 17:34
- **Backpressure-enabled** - The pool MUST add the error labels `SystemOverloadedError` and `RetryableError` to network
errors or network timeouts it encounters during the connection establishment or the `hello` message. These labels
are used by the
[server monitor](../server-discovery-and-monitoring/server-discovery-and-monitoring.md#error-handling-pseudocode) to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest [server monitor] -> [SDAM error handling]

"server monitor" is the title of another document.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


1. Two concurrent writes begin on application threads A and B.
2. The server restarts.
3. Thread A receives the first non-timeout network error, and the client marks the server Unknown, and clears the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this section need to change? We aren't changing the behavior of network errors when executing a command.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted

- isMaster
- hello
appName: backpressureNetworkErrorFailTest
closeConnection: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we missing

Suggested change
closeConnection: true
closeConnection: true
errorLabels:
- SystemOverloadedError
- RetryableError

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the labels are expected to be added by the client in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants