After CDRIVER-3723, it will no longer be possible to construct a client or pool with an invalid topology (i.e. SRV lookup or URI finalization failed). Previously, clients and pools could be created with an invalid topology and errors would not be relayed until the first instance of server selection.
Consider refactoring mongoc_topology_new to take an optional bson_error_t and return NULL if the topology would be considered invalid.
Once it is no longer possible to construct an invalid topology, checks for topology->valid (e.g. 2d94467 from CDRIVER-4184) can also be removed.
- depends on
-
CDRIVER-3723 Validate URI options on client/client pool creation
- Closed
- duplicates
-
CDRIVER-3723 Validate URI options on client/client pool creation
- Closed
- is related to
-
CDRIVER-4184 Assert in invalid topology in load balanced mode topology closed callback
- Closed