[CDRIVER-4360] Improve server description's hello handling Created: 18/Apr/22  Updated: 19/May/23  Resolved: 19/May/23

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

Type: Improvement Priority: Unknown
Reporter: Roberto Sanchez Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CDRIVER-4499 mongoc_server_description_handle_hell... Closed
Epic Link: CDRIVER-4576

 Description   

The handling of reply document parse errors in mongoc_server_description_handle_hello () leads to absent or misleading error messages. Generally, it is preferred to set the domain, code, and message properties of the server description's error member when a failure is encountered. However, in most instances when a failure (parse error) is encountered in mongoc_server_description_handle_hello () no error properties are set and the operation simply terminates. It would be better to set the relevant properties to ensure that sensible error messages are produced in the event of a failure.


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