You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Mao (Jira)" <ji...@apache.org> on 2023/07/14 21:54:00 UTC
[jira] [Created] (KAFKA-15192) Network thread receives exception when updating request metrics
David Mao created KAFKA-15192:
---------------------------------
Summary: Network thread receives exception when updating request metrics
Key: KAFKA-15192
URL: https://issues.apache.org/jira/browse/KAFKA-15192
Project: Kafka
Issue Type: Bug
Components: metrics
Reporter: David Mao
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)