Skip to content

Apply timeout to server selection #1226

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 2 commits into from
Oct 30, 2023
Merged

Apply timeout to server selection #1226

merged 2 commits into from
Oct 30, 2023

Conversation

katcharov
Copy link
Collaborator

@katcharov katcharov requested a review from rozza October 20, 2023 13:57
"mongodb://invalid/?timeoutMS=0&serverSelectionTimeoutMS=10",
})
public void test8ServerSelectionPart1(final String connectionString) {
int timeoutBuffer = 100; // 5 in spec, Java is slower
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that this is increased, and the MS=200 (20 in spec). I used 20 for timeoutBuffer initially, but in the async test, this needs at least ~80.

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

LGTM

@katcharov katcharov merged commit 41bcec3 into CSOT Oct 30, 2023
@katcharov katcharov deleted the JAVA-4065 branch October 30, 2023 16:19
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