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

KafkaStreams#metrics() method randomly throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • streams
    • None
    • Kubernetes

    Description

      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:

      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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bataitis Zygimantas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: