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

Unclear warning message in JmxReporter, when getting missing JMX attribute

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: clients
    • Labels:
      None

      Description

      When collecting bulk metrics, this warning message in logs is unhelpful, it is impossible to determine which MBean is missing this attribute and fix the metric collector:

       

      [2021-01-26T15:43:41,078][WARN ][org.apache.kafka.common.metrics.JmxReporter] Error getting JMX attribute 'records-lag-max'
      javax.management.AttributeNotFoundException: Could not find attribute records-lag-max
       at org.apache.kafka.common.metrics.JmxReporter$KafkaMbean.getAttribute(JmxReporter.java:192) ~[?:?]
       at org.apache.kafka.common.metrics.JmxReporter$KafkaMbean.getAttributes(JmxReporter.java:200) ~[?:?]
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java:709) ~[?:1.8.0_202]
      

      Il would be very useful, to have the MBean object name in the error message.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gquintana Gérald Quintana
                Reporter:
                gquintana Gérald Quintana
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: