-
Notifications
You must be signed in to change notification settings - Fork 456
CDRIVER-4614 Include topology description in error messages #1527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5202e26
to
3e5caef
Compare
3e5caef
to
6a757da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, but I think the new exported function should be removed if it isn't otherwise used.
I approved latest changes. Want to include in upcoming release.
…ongodb#1527)" This reverts commit d50f650.
I merged to attempt to include in the 1.27.0 release. Windows test tasks started to fail. I re-ran a newly failing task on the previous commit. The task on the previous commit passed. So I expect the failure was introduced by those changes. I reverted the commit. I expect a new PR is needed. Sorry for the noise. |
|
||
done: | ||
if (error) { | ||
_mongoc_error_append (error, topology_type->str); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If error
is non-NULL and an error was not set, I expect this is appending to an uninitialized bson_error_t
. This may have been the cause of the Windows task failures.
DRIVERS-2421 requests that timeout messages include the topology description and a list of servers for timeout messages.
The C driver already gathers errors from each server (including the URI). This PR adds a topology description to the end of server selection error messages. It is added last so is omitted if there's no space left in
mongoc_error_t
.