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

Network thread receives exception when updating request metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • metrics
    • None

    Description

      We noticed an exception being thrown from the network threads when updating some of the request histograms. Example stack trace:

       
      java.util.NoSuchElementException
      at java.util.concurrent.ConcurrentSkipListMap.firstKey(ConcurrentSkipListMap.java:2064)
      at com.yammer.metrics.stats.ExponentiallyDecayingSample.update(ExponentiallyDecayingSample.java:102)
      at com.yammer.metrics.stats.ExponentiallyDecayingSample.update(ExponentiallyDecayingSample.java:81)
      at com.yammer.metrics.core.Histogram.update(Histogram.java:110)
       

      Searching the error I found a similar ticket resolved in Cassandra by updating their dropwizard dependency to pull in https://github.com/dropwizard/metrics/pull/1436. https://issues.apache.org/jira/browse/CASSANDRA-15472

      Kafka currently still uses yammer metrics, so we would need to take https://cwiki.apache.org/confluence/display/KAFKA/KIP-510%3A+Metrics+library+upgrade forward to upgrade to a dropwizard version that fixes this issue.

      Attachments

        1. latency-cpu.html
          2.18 MB
          Divij Vaidya

        Activity

          People

            Unassigned Unassigned
            david.mao David Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: