Zygimantas created KAFKA-9717:
---------------------------------
Summary: KafkaStreams#metrics() method randomly throws
NullPointerException
Key: KAFKA-9717
URL: https://issues.apache.org/jira/browse/KAFKA-9717
Project: Kafka
Issue Type: Bug
Components: streams
Affects Versions: 2.2.0
Environment: Kubernetes
Reporter: Zygimantas
We have implemented monitoring tool which monitors Kafka Streams application
and regularly (every 20s) calls KafkaStreams.metrics() method in that
application. But metrics() method randomly throws NullPointerException. It
happens almost every time after application startup, but may also happen at
random points in time after running application for few hours.
Stacktrace:
{code:java}
java.lang.NullPointerException
at
org.apache.kafka.streams.processor.internals.StreamThread.producerMetrics(StreamThread.java:1320)
at org.apache.kafka.streams.KafkaStreams.metrics(KafkaStreams.java:379)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)