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

[FIXED] LeafNode: Don't report cluster name in varz/banner when none defined #5931

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

kozlovic
Copy link
Member

In situation where a Leaf server has no cluster specified, we internally use the server name as the cluster name. We may need it in the protocol so that the hub can suppress some messages to avoid duplicates.

We were however still reporting a cluster name in /varz and in the banner on startup. This PR fixes both.

Resolves #5913

Signed-off-by: Ivan Kozlovic ivan@synadia.com

…defined.

In situation where a Leaf server has no cluster specified, we internally
use the server name as the cluster name. We may need it in the protocol
so that the hub can suppress some messages to avoid duplicates.

We were however still reporting a cluster name in `/varz` and in the
banner on startup. This PR fixes both.

Resolves #5913

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from a team as a code owner September 26, 2024 00:03
@kozlovic
Copy link
Member Author

@ripienaar I wonder if this could have an adverse effect on NATS monitoring tooling. What do you think?

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 74ef475 into main Sep 26, 2024
5 checks passed
@derekcollison derekcollison deleted the fix_5913 branch September 26, 2024 03:43
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.

metric cluster_name for leaf node is not correct
2 participants