[CDRIVER-2393] Fail if any SRV record does not match root of service name Created: 20/Nov/17  Updated: 28/Oct/23  Resolved: 24/Nov/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.9.0
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In 1.9.0 we ignore hostnames retrieved from SRV records if the hostnames do not share the service name's root. We just log a warning and omit the hostnames from the initial seedlist.

In 1.10, be more strict: if any retrieved hostname does not share the service name's root, the entire topology is invalid, even if there are other hostnames that do match.



 Comments   
Comment by A. Jesse Jiryu Davis [ 24/Nov/17 ]

Done in CDRIVER-2257 in 1.9.0 because a spec change requires it. Tested with parent-part-mismatch5.json.

Generated at Wed Feb 07 21:15:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.