Skip to content

GODRIVER-2092 Disallow positive srvMaxHosts with replicaSet or loadBalanced=true #767

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 5 commits into from
Oct 14, 2021
Merged

GODRIVER-2092 Disallow positive srvMaxHosts with replicaSet or loadBalanced=true #767

merged 5 commits into from
Oct 14, 2021

Conversation

benjirewis
Copy link
Contributor

GODRIVER-2092

Followup to original PR that added support for the srvMaxHosts URI option. Errors when srvMaxHosts is specified and is a positive number with replicaSet or loadBalanced=true in the connection string or TXT record. If replicaSet is specified or the configuration is load-balanced, a positive srvMaxHosts value does not make sense, so we should error (this according to recent spec changes).

@benjirewis benjirewis marked this pull request as ready for review October 13, 2021 03:58
Copy link
Contributor

@divjotarora divjotarora left a comment

Choose a reason for hiding this comment

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

LGTM!

@benjirewis benjirewis merged commit 0a5054e into mongodb:master Oct 14, 2021
@benjirewis benjirewis deleted the srvMaxHostsTests.2092 branch October 14, 2021 17:23
faem pushed a commit to kubedb/mongo-go-driver that referenced this pull request Mar 17, 2022
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