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

fix(bridge_api): don't crash when formatting empty/unknown bridge metrics #10743

Merged

Conversation

thalesmg
Copy link
Contributor

@thalesmg thalesmg commented May 18, 2023

targeting release-50

Fixes https://emqx.atlassian.net/browse/EMQX-9872

Summary

🤖 Generated by Copilot at 3ac08fa

This pull request adds and improves tests for the bridge API in cluster scenarios, and fixes a bug in the format_metrics function that caused errors when a node joined a cluster with existing bridges. It also introduces a new option join_to for the mk_cluster_specs function to specify a different node to join the cluster to.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Changed lines covered in coverage report
  • Change log has been added to changes/{ce,ee}/(feat|perf|fix)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • If there should be document changes, a PR to emqx-docs.git is sent, or a jira ticket is created to follow up
  • Schema changes are backward compatible

Checklist for CI (.github/workflows) changes

  • If changed package build workflow, pass this action (manual trigger)
  • Change log has been added to changes/ dir for user-facing artifacts update

@thalesmg thalesmg force-pushed the fix-bridge-metric-aggregation-r50 branch 2 times, most recently from 997d7a0 to 4b83935 Compare May 18, 2023 16:40
@thalesmg thalesmg force-pushed the fix-bridge-metric-aggregation-r50 branch from 4b83935 to 09ea2e2 Compare May 18, 2023 17:26
@thalesmg thalesmg marked this pull request as ready for review May 18, 2023 20:34
@thalesmg thalesmg requested review from a team and lafirest as code owners May 18, 2023 20:34
@HJianBo
Copy link
Member

HJianBo commented May 19, 2023

Fixes function_clause also found #10714 (comment) (I'll try to open a new PR to fix this issue)

Copy link
Contributor

@keynslug keynslug left a comment

Choose a reason for hiding this comment

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

🔥

@thalesmg thalesmg merged commit 8cfcc8f into emqx:release-50 May 19, 2023
138 checks passed
@thalesmg thalesmg deleted the fix-bridge-metric-aggregation-r50 branch May 19, 2023 12:07
thalesmg added a commit to thalesmg/emqx that referenced this pull request May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants