[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: |
|
||||||||||||||||||||
| 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 |
| 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: Include each server's ismaster error in the server-selection error from |