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

MOTOR-1209: Motor's DriverInfo should not be overwritten #233

Merged
merged 8 commits into from
Nov 14, 2023
Merged

Conversation

Jibola
Copy link
Contributor

@Jibola Jibola commented Nov 8, 2023

@Jibola Jibola requested a review from a team as a code owner November 8, 2023 14:26
@Jibola Jibola requested review from ShaneHarvey and removed request for a team November 8, 2023 14:26
motor/core.py Outdated Show resolved Hide resolved
motor/core.py Show resolved Hide resolved
motor/core.py Outdated Show resolved Hide resolved
motor/core.py Show resolved Hide resolved
motor/core.py Outdated Show resolved Hide resolved
test/tornado_tests/test_motor_client.py Outdated Show resolved Hide resolved
test/tornado_tests/test_motor_client.py Outdated Show resolved Hide resolved
client = motor.MotorClient(server.uri, driver=driver_info)

# Trigger connection.
future = client.db.command("ping")
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed? IIUC the ismaster is from SDAM which happens automatically so this future could be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I wasn't sure if it was needed. I assumed that the ping was the source.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I tried removing the ping call, and the test now crashes with asyncio.exceptions.TimeoutError: Operation timed out after 5 seconds

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.

Could you git merge master to make it easier to ensure this new test passes?

@Jibola Jibola requested a review from ShaneHarvey November 13, 2023 20:57
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.

LGTM!

@Jibola Jibola merged commit a1c57b7 into master Nov 14, 2023
@Jibola Jibola deleted the MOTOR-1209 branch November 14, 2023 20:35
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