-
Notifications
You must be signed in to change notification settings - Fork 14.5k
KAFKA-19406: Remove BrokerTopicStats#removeOldFollowerMetrics #19962
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
Conversation
@@ -2201,9 +2201,7 @@ class ReplicaManager(val config: KafkaConfig, | |||
private def updateLeaderAndFollowerMetrics(newFollowerTopics: Set[String]): Unit = { | |||
val leaderTopicSet = leaderPartitionsIterator.map(_.topic).toSet | |||
newFollowerTopics.diff(leaderTopicSet).foreach(brokerTopicStats.removeOldLeaderMetrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removeOldLeaderMetrics
tries to remove REPLICATION_BYTES_OUT_PER_SEC
and REASSIGNMENT_BYTES_OUT_PER_SEC
which apply across all topics too. Could you please remove them?
LGTM, please correct the Jira number in PR title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gongxuanzhang: LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, LGTM
@chia7712 PTAL |
about https://issues.apache.org/jira/browse/KAFKA-19406
BTW: whether we should rename
ReplicaManager#updateLeaderAndFollowerMetrics
Reviewers: Ken Huang s7133700@gmail.com, PoAn Yang
payang@apache.org, TengYao Chi kitingiao@gmail.com, Lan Ding
isDing_L@163.com, Chia-Ping Tsai chia7712@gmail.com