The cause of CDRIVER-2425 is that we have too many copies of the MongoDB URI: the client pool, the client, the topology, and the cluster all have copies. MongoDB URIs are mutable. Specifically if mongoc_topology_new receives a mongodb+srv URI, it updates its URI struct with the results of a DNS lookup, but the client's copy of the URI isn't updated.
Refactor to reduce the number of copies and reduce the likelihood that one part of the code uses an inconsistent copy of the URI from another part of the code.
- related to
-
CDRIVER-2425 authSource option from TXT record ignored
- Closed