[GODRIVER-2178] Move SRV resolution logic to Client configure Created: 07/Oct/21  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: Server Discovery and Monitoring
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

 

We recently added support for two new URI options: srvServiceName and srvMaxHosts. These URI options now have corresponding fields on ClientOptions.

If a user calls ApplyURI, an SRV lookup will be performed for initial DNS seedlist discovery using the values in SRVMaxHosts and SRVServiceName. If a user has not yet called SetSRVServiceName or SetSRVMaxHosts before calling ApplyURI, their requested SRV options will not be honored.

We should move the SRV resolution logic to Client#Configure instead of ClientOptions#ApplyURI, so that the order of operations does not matter.


Generated at Thu Feb 08 08:37:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.