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

Producer may fail IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.2.1
    • producer
    • None

    Description

      In a Kafka Streams application, we observed the following log from the producer:

      2019-04-17T01:58:25.898Z 17466081 [kafka-producer-network-thread | client-id-enrichment-gcoint-StreamThread-7-0_10-producer] ERROR org.apache.kafka.clients.producer.internals.Sender - [Producer clientId=client-id-enrichment-gcoint-StreamThread-7-0_10-producer, transactionalId=application-id-enrichment-gcoint-0_10] Uncaught error in kafka producer I/O thread:
      2019-04-17T01:58:25.898Z java.lang.IllegalStateException: Attempt to send a request to node 1 which is not ready.
      2019-04-17T01:58:25.898Z at org.apache.kafka.clients.NetworkClient.doSend(NetworkClient.java:430)
      2019-04-17T01:58:25.898Z at org.apache.kafka.clients.NetworkClient.send(NetworkClient.java:411)
      2019-04-17T01:58:25.898Z at org.apache.kafka.clients.producer.internals.Sender.maybeSendTransactionalRequest(Sender.java:362)
      2019-04-17T01:58:25.898Z at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:214)
      2019-04-17T01:58:25.898Z at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:163)
      2019-04-17T01:58:25.898Z at java.lang.Thread.run(Thread.java:748)

      Later, Kafka Streams (running with EOS enabled) shuts down with a `TimeoutException` that occurs during rebalance. It seem that the above error results in this `TimeoutException`. However, and `IllegalStateException` seem to indicate a bug in the producer.

      Attachments

        Activity

          People

            hachikuji Jason Gustafson
            mjsax Matthias J. Sax
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: