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

NPE in KafkaConsumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 1.1.1
    • None
    • clients
    • None

    Description

      The stacktrace is

      java.lang.NullPointerException
              at org.apache.kafka.clients.consumer.internals.Fetcher$1.onSuccess(Fetcher.java:221)
              at org.apache.kafka.clients.consumer.internals.Fetcher$1.onSuccess(Fetcher.java:202)
              at org.apache.kafka.clients.consumer.internals.RequestFuture.fireSuccess(RequestFuture.java:167)
              at org.apache.kafka.clients.consumer.internals.RequestFuture.complete(RequestFuture.java:127)
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler.fireCompletion(ConsumerNetworkClient.java:563)
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.firePendingCompletedRequests(ConsumerNetworkClient.java:390)
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:244)
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:233)
              at org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:1171)
              at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1115)
      

      Couldn't find minimal reproducer, but it happens quite often in our system. We use pause() and wakeup() methods quite extensively, maybe it is somehow related.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              avakhrenev Alexey Vakhrenev
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: