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

KRaft Controller Metric MBean names are incorrectly quoted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 3.0.0
    • Component/s: controller
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: