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
@blink1073 blink1073 requested a review from a team as a code owner November 17, 2025 15:55
@blink1073 blink1073 requested review from JamesKovacs and removed request for a team November 17, 2025 15:55
Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

Discussed some test issues with Steve on slack, here's some other comments I had. My POC in Node is passing locally with the changes Steve is planning to make; once I have updated tests I'll test my POC in CI and hopefully everything passes.

blink1073 and others added 2 commits November 20, 2025 07:22
…nitoring.md

Co-authored-by: Bailey Pearson <bailey.pearson@gmail.com>
@blink1073
Copy link
Member Author

Note: I haven't yet updated the prose test implementation in pymongo. I'm working on that next.

Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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


## Changelog

- 2025-XX-YY: Add handling of backpressure error labels.
Copy link
Contributor

Choose a reason for hiding this comment

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

changelog dates?

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

many clients start at once. A client's subsequent scans of the mongoses are always in the same order, since their
lastUpdateTimes are always in the same order by the time a scan ends.

##### Handling of backpressure labels
Copy link
Member Author

Choose a reason for hiding this comment

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

@kevinAlbs We added this section specifically for the C Driver. Does this make sense?

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM.

Comment on lines 583 to 584
# Note: for single-threaded monitors, only clear if the `SystemOverloadedError` is not applied to the
# error.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest removing this Note:. This is in the "Monitor thread" section. The C driver single-threaded client does not implement the "Streaming Protocol" (only polling). I think the new "Handling of backpressure labels" is enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great, thank you!

Copy link
Member Author

Choose a reason for hiding this comment

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

I've pinged you for one more approval for this change

@blink1073 blink1073 requested a review from kevinAlbs November 25, 2025 13:48
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

Additions to server-monitoring.md LGTM with a typo fix.

Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
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.

5 participants