[CDRIVER-897] Scanner nodes don't record connection errors Created: 01/Oct/15  Updated: 19/Oct/16  Resolved: 01/Oct/15

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.2-beta1
Fix Version/s: 1.2-rc0

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-898 Unify scanner node and server descrip... Closed

 Description   

Starting in version 1.2, the driver discovers and monitors the server topology using an event loop with a non-blocking socket per server, to check all servers in parallel.

If one of those checks times out or the connection is refused, the driver does not record the error.

The Server Discovery And Monitoring spec suggests recording each server check's error and summing all errors to report why no server is available:

https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#network-error-when-calling-ismaster



 Comments   
Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-897 report error or timeout from ismaster
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/05a6bcd5951a748536ea88c2173018c3051cc8d8

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