Skip to content

PYTHON-5202 WaitQueueTimeoutError should not clear the pool #2192

New issue

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

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

Already on GitHub? # to your account

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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants