Skip to content

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

3 participants