You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ab...@apache.org on 2021/03/04 22:31:19 UTC

[kafka] branch 2.6 updated: Remove ReassigningPartitions metric when shutting down ReplicaManager (#10260)

This is an automated email from the ASF dual-hosted git repository.

ableegoldman pushed a commit to branch 2.6
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.6 by this push:
     new d0ba7c1  Remove ReassigningPartitions metric when shutting down ReplicaManager (#10260)
d0ba7c1 is described below

commit d0ba7c110af2e1f6859750d8e5f66894410c4e10
Author: Lee Dongjin <do...@apache.org>
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 <ch...@gmail.com>, Anna Sophie Blee-Goldman < ableegoldman@apache.org>
---
 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 8f05d65..bbbfe10 100644
--- a/core/src/main/scala/kafka/server/ReplicaManager.scala
+++ b/core/src/main/scala/kafka/server/ReplicaManager.scala
@@ -1728,6 +1728,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