yapeng created KAFKA-17211: ------------------------------ Summary: kafka producer get stuck by Uncaught error in kafka producer I/O thread Key: KAFKA-17211 URL: https://issues.apache.org/jira/browse/KAFKA-17211 Project: Kafka Issue Type: Bug Components: clients Affects Versions: 2.8.2 Reporter: yapeng
I have a kafka producer and it reported this error message forever. {code:java} [Producer clientId=xxxxxxxxxxxxxxx] Uncaught error in kafka producer I/O thread: java.util.NoSuchElementException: null at java.util.ArrayDeque.getFirst(ArrayDeque.java:329) at org.apache.kafka.clients.producer.internals.RecordAccumulator.expiredBatches(RecordAccumulator.java:306) at org.apache.kafka.clients.producer.internals.Sender.sendProducerData(Sender.java:372) at org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:326) at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:255) at java.lang.Thread.run(Thread.java:750){code} It seems wired that there has null values in Deque<ProducerBatch>. The machine has been restarted to solve online issues so there is no heap dump. Please help give some insights about this issue. -- This message was sent by Atlassian Jira (v8.20.10#820010)