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

KRaft Controller Metric MBean names are incorrectly quoted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8.0
    • 3.0.0
    • controller
    • None

    Description

      QuorumControllerMetrics is letting com.yammer.metrics.MetricName create the MBean names for all of the controller metrics, and that adds quotes. We have typically used KafkaMetricsGroup to explicitly create the MBean name, and we do not add quotes there. The controller metric names that are in common between the old and new controller must remain the same, but they are not. For example, this non-KRaft MBean name:

      kafka.controller:type=KafkaController,name=OfflinePartitionsCount

      has morphed into this when using KRaft:

      "kafka.controller":type="KafkaController",name="OfflinePartitionsCount"

      Attachments

        Issue Links

          Activity

            People

              rndgstn Ron Dagostino
              rndgstn Ron Dagostino
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: