Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYTHON-5202 WaitQueueTimeoutError should not clear the pool #2192

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

ShaneHarvey
Copy link
Member

PYTHON-5202 WaitQueueTimeoutError should not clear the pool

@ShaneHarvey ShaneHarvey requested a review from NoahStapp March 12, 2025 00:01
Copy link
Contributor

@NoahStapp NoahStapp left a comment

Choose a reason for hiding this comment

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

How did you come across this bug? Great find!

@blink1073
Copy link
Member

drivers-pr-bot please backport to v4.11

@ShaneHarvey ShaneHarvey merged commit e48365c into mongodb:master Mar 12, 2025
35 of 38 checks passed
@ShaneHarvey
Copy link
Member Author

I discovered this while working on a customer repro involving CSOT. Using pymongo.timeout() will cause WaitQueueTimeoutError when the timeout expires while waiting to checkout a connection from the pool. After this happens, subsequent operations failed with AutoReconnect("connection pool paused") errors which was unexpected. It would have been easier to diagnose if we had DRIVERS-1998.

mongodb-drivers-pr-bot bot pushed a commit that referenced this pull request Mar 12, 2025
ShaneHarvey added a commit that referenced this pull request Mar 12, 2025
…v4.11] (#2196)

Co-authored-by: Shane Harvey <shnhrv@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.

3 participants