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

Improve selection criteria for srvMaxHosts #1590

Merged
merged 9 commits into from
Jan 16, 2025

Conversation

joykim1005
Copy link
Contributor

@joykim1005 joykim1005 commented Dec 31, 2024

Ticket

JAVA-4400

Description

This PR improves the selection criteria for srvMaxHosts. The net result is that it will keep existing nodes, discard deleted nodes, and fill up to srvMaxHosts from a random shuffle of newly discovered nodes from the SRV response. It also updates the prose test to match the spec.

Testing

@joykim1005 joykim1005 requested review from a team and stIncMale and removed request for a team January 6, 2025 14:20
@joykim1005 joykim1005 marked this pull request as ready for review January 7, 2025 15:36
@joykim1005 joykim1005 requested a review from katcharov January 7, 2025 18:38
@jyemin jyemin removed the request for review from stIncMale January 7, 2025 22:17
@jyemin
Copy link
Contributor

jyemin commented Jan 7, 2025

I removed @stIncMale since he is currently overloaded. @katcharov please let me know if you think a second reviewer is needed for this.

@joykim1005 joykim1005 requested a review from katcharov January 14, 2025 18:05
Copy link
Contributor

@katcharov katcharov left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of minor optional comments

@joykim1005 joykim1005 merged commit 0922a24 into mongodb:main Jan 16, 2025
16 of 60 checks passed
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.

3 participants