-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
There seems no good reason to have both mongoc_server_description_t.error and mongoc_topology_scanner_node_t.last_error.
Note that mongoc_server_description_handle_ismaster takes a bson_error_t* from the scanner node, but doesn't use it. Was this intended as an IN parameter to copy to the server description, or an OUT parameter in case the ismaster response doesn't parse?
Also consider the error "`minheartbeatfrequencyms` not reached yet": perhaps if mongoc_topology_select does no scan it should return the same error it did previously, instead of the generic "`minheartbeatfrequencyms` not reached yet" error.
- duplicates
-
CDRIVER-1203 Include ismaster errors in server-selection error for pooled client
- Closed
- is related to
-
CDRIVER-897 Scanner nodes don't record connection errors
- Closed
-
CDRIVER-696 Useful errors from server selection
- Closed