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 metric deletion on group delete #800

Merged
merged 4 commits into from
Apr 29, 2024

Conversation

Usiel
Copy link
Contributor

@Usiel Usiel commented Feb 16, 2024

This PR contains 2 related fixes:

Deleting ALL metrics of a consumer group

The burrow_kafka_topic_partition_status metric for a deleted consumer group was dangling because we neglected to clear the corresponding gauge.

Fixes #797

Handling the case when user only deletes a specific consumer group's topic

Previously, we deleted all consumer group metrics when a group's topic was deleted. With this change we make sure to check for the case where a topic is provided (i.e. user wants to delete only a specific topic of a consumer group) and delete only the metrics that match both consumer group and topic.

The `burrow_kafka_topic_partition_status` metric for a deleted consumer group was dangling because we neglected to clear the corresponding gauge.
…eted

Previously, we deleted the all consumer group metrics when a group's topic was deleted. WIth this change we make sure to check for the case where a topic is provided (i.e. user wants to delete only a specific topic of a consumer group) and delete only the metrics that match both consumer group and topic.
@Usiel Usiel requested a review from bai as a code owner February 16, 2024 04:23
@Usiel Usiel changed the title Usiel/fix metric deletion on group delete Fix metric deletion on group delete Feb 16, 2024
bai and others added 2 commits April 24, 2024 16:58
* master:
  Update Alpine to 3.19
  Update Go to 1.22
  Update dependencies
  Bump golang.org/x/net from 0.17.0 to 0.23.0
  Bump golang.org/x/crypto from 0.14.0 to 0.17.0
  Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
  Update Go to 1.21.8
  Update to golintci version that is compatible with go 1.21.x and update golintci configuration to emulate the behavior of the older version
@Usiel
Copy link
Contributor Author

Usiel commented Apr 29, 2024

I fixed the Lint issue for the new code. Let me know if there's anything else.

@bai
Copy link
Collaborator

bai commented Apr 29, 2024

Many thanks ❤️

@bai bai merged commit f02c934 into linkedin:master Apr 29, 2024
1 check passed
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.

Burrow report STOPPED on topic on group that no longer exist
2 participants