[CDRIVER-898] Unify scanner node and server description errors Created: 01/Oct/15  Updated: 29/Apr/16  Resolved: 29/Apr/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

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

Issue Links:
Duplicate
duplicates CDRIVER-1203 Include ismaster errors in server-sel... Closed
Related
is related to CDRIVER-897 Scanner nodes don't record connection... Closed
is related to CDRIVER-696 Useful errors from server selection Closed

 Description   

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.


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