[CDRIVER-1203] Include ismaster errors in server-selection error for pooled client Created: 18/Apr/16  Updated: 10/Aug/16  Resolved: 25/Apr/16

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

Type: Improvement Priority: Major - P3
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:
Duplicate
is duplicated by CDRIVER-898 Unify scanner node and server descrip... Closed
Related
related to CDRIVER-696 Useful errors from server selection Closed
is related to CDRIVER-841 Improve SSL connection error messages Closed

 Description   

derick points out that server selection error messages from pooled clients are less helpful than from single clients. E.g., a single client that can't reach MongoDB says:

No suitable servers found (`serverselectiontryonce` set): [connection timeout calling ismaster on 'localhost:44444']

A pooled client says:

Timed out trying to select a server

Bring the pooled client's error message up to spec. Server Selection Spec says "Drivers should use server descriptions and their error attributes (if set) to return useful error messages".



 Comments   
Comment by Githook User [ 03/May/16 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: Update expected error message for server selection failures

This message was changed in https://github.com/mongodb/mongo-c-driver/commit/ed4d53ec873952ac929bc3f4467a935dde2a0681 for CDRIVER-1203.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/acc06c176dbdaee7286201fdee6fa6d3a82d0bf4

Comment by Githook User [ 25/Apr/16 ]

Author:

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

Message: CDRIVER-1203 improve server-selection errors

Include each server's ismaster error in the server-selection error from
a pooled client.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/ed4d53ec873952ac929bc3f4467a935dde2a0681

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