forked from apache/kafka
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude topics being deleted from the offlinePartitionCount metric an…
…d clean up partitionState in PartitionStateMachine after topic deletion is done (#13) Exclude topics being deleted from the offlinePartitionCount metric and clean up partitionState in PartitionStateMachine after topic deletion is done Currently the offlinePartitionCount metric also reports the partitions of the topic that has already been queued for deletion, which creates noise for the alerting system, especially for the cluster that has frequent topic deletion operation. This patch adds a mechanism to exclude partitions already been queued for deletion from the offlinePartitionCount metric and also remove the in-memory topicsWithDeletionStarted in TopicDeletionManager since we no longer use it to update the metric. This patch also addresses a potential memory pressure issue of not cleaning up the in-memory partition states in PartitionStateMachine even after the topic has already been deleted.
- Loading branch information
Showing
4 changed files
with
44 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters