Skip to content
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

Implement fine-grained errors to cloud queries #12460

Merged
merged 5 commits into from
Mar 21, 2022

Conversation

underhood
Copy link
Contributor

Summary

Implements #12340

Test Plan

See the generated message. Cloud hasn't implemented this yet but we got green light to send this (Cloud should for now ignore until they find time to implement) but should not cause errors on cloud.

Additional Information

@underhood underhood changed the title Implement fine-grained errors to cloud Implement fine-grained errors to cloud queries Mar 18, 2022
aclk/aclk_util.h Outdated Show resolved Hide resolved
@stelfrag stelfrag requested a review from MrZammler March 19, 2022 08:07
aclk/aclk_query.c Outdated Show resolved Hide resolved
retval = 1;
w->response.code = 404;
aclk_http_msg_v2_err(query_thr->client, query->callback_topic, query->msg_id, w->response.code, NULL, 0);
aclk_http_msg_v2_err(query_thr->client, query->callback_topic, query->msg_id, w->response.code, CLOUD_EC_MALFORMED_NODE_ID, CLOUD_EMSG_MALFORMED_NODE_ID, NULL, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Not specific to this PR, but maybe there could be another response than 404 to indicate this? I know cloud must already be consuming this, but maybe as an enhancement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah should be easier to change this in future after cloud consumes the new custom error codes -> so they can match it whenif we change from 404

@stelfrag stelfrag self-requested a review March 21, 2022 15:56
@underhood underhood merged commit 252915d into netdata:master Mar 21, 2022
@underhood underhood deleted the issue_12340 branch March 21, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants