Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14868

Remove some forgotten metrics when the replicaManager is closed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • None
    • None

    Description

      In some current classes, some metrics are always registered when loading, but it often occurs that some or all metrics are forgotten to be removed when closing. For example, in the ReplicaManager class, IsrExpandsPerSec, IsrShrinksPerSec, and FailedIsrUpdatesPerSec are all removed by omission.

      The problem of not closing the metric in the replicaManager has been solved in the patch. As for how to improve the KafkaMetricsGroup to make the inspection of such issues more general, there is no conclusive solution.

      Attachments

        Issue Links

          Activity

            People

              hudeqi hudeqi
              hudeqi hudeqi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: