Skip to content

PYTHON-4695 Fix test event loop policy and improve error traceback for ClientBulkWriteException #1828

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

Merged
merged 17 commits into from
Sep 6, 2024

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Sep 4, 2024

Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

Great improvements but we still need to fix the bug where ClientBulkWriteException contains a raw TimeoutError. That should never be possible even if the event loop policy is incompatible. We should be catching TimeoutError and raising pymongo's NetworkTimeout.

ShaneHarvey
ShaneHarvey previously approved these changes Sep 5, 2024
@blink1073
Copy link
Member Author

Great improvements but we still need to fix the bug where ClientBulkWriteException contains a raw TimeoutError. That should never be possible even if the event loop policy is incompatible. We should be catching TimeoutError and raising pymongo's NetworkTimeout.

I opened PYTHON-4740 to track that question separately.

@blink1073 blink1073 merged commit 22b66b2 into mongodb:master Sep 6, 2024
32 of 34 checks passed
@blink1073 blink1073 deleted the PYTHON-4695 branch September 6, 2024 17:17
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.

2 participants