This is an automated email from the ASF dual-hosted git repository.
ableegoldman pushed a commit to branch 2.7
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.7 by this push:
new 616c631 Remove ReassigningPartitions metric when shutting down
ReplicaManager (#10260)
616c631 is described below
commit 616c631ae52ce67b6107df2e2fe085890fdf5a25
Author: Lee Dongjin <[email protected]>
AuthorDate: Fri Mar 5 07:25:51 2021 +0900
Remove ReassigningPartitions metric when shutting down ReplicaManager
(#10260)
One gauge is missing in ReplicaManager#removeMetrics
Reviewers: Chia-Ping Tsai <[email protected]>, Anna Sophie Blee-Goldman <
[email protected]>
---
core/src/main/scala/kafka/server/ReplicaManager.scala | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/src/main/scala/kafka/server/ReplicaManager.scala
b/core/src/main/scala/kafka/server/ReplicaManager.scala
index 06983d8..1b819d3 100644
--- a/core/src/main/scala/kafka/server/ReplicaManager.scala
+++ b/core/src/main/scala/kafka/server/ReplicaManager.scala
@@ -1828,6 +1828,7 @@ class ReplicaManager(val config: KafkaConfig,
removeMetric("UnderReplicatedPartitions")
removeMetric("UnderMinIsrPartitionCount")
removeMetric("AtMinIsrPartitionCount")
+ removeMetric("ReassigningPartitions")
}
// High watermark do not need to be checkpointed only when under unit tests