OmniaGM commented on PR #19964:
URL: https://github.com/apache/kafka/pull/19964#issuecomment-3024420820

   > Unfortunately, this version again seems to be triggering a problem with 
producers getting stuck during flushing. We are running with Kafka commitId 
`405d1b7ed8b6c452` which should be the latest version of this PR.
   > 
   > In the thread dump, I see producers being stuck here:
   > 
   > ```
   >    java.lang.Thread.State: WAITING (parking)
   >    at jdk.internal.misc.Unsafe.park(java.base@17.0.12/Native Method)
   >    - parking to wait for  <0x000000072a34ed28> (a 
java.util.concurrent.CountDownLatch$Sync)
   >    at 
java.util.concurrent.locks.LockSupport.park(java.base@17.0.12/LockSupport.java:211)
   >    at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(java.base@17.0.12/AbstractQueuedSynchronizer.java:715)
   >    at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(java.base@17.0.12/AbstractQueuedSynchronizer.java:1047)
   >    at 
java.util.concurrent.CountDownLatch.await(java.base@17.0.12/CountDownLatch.java:230)
   >    at 
org.apache.kafka.clients.producer.internals.ProduceRequestResult.await(ProduceRequestResult.java:76)
   >    at 
org.apache.kafka.clients.producer.internals.RecordAccumulator.awaitFlushCompletion(RecordAccumulator.java:1075)
   >    at 
org.apache.kafka.clients.producer.KafkaProducer.flush(KafkaProducer.java:1325)
   >    at ...
   > ```
   > 
   > The last sign of life from the producer is this:
   > 
   > ```
   > soak_44.244.234.161/streams.log.2025-06-30-22:59:[2025-06-30 22:50:32,044] 
ERROR [kafka-producer-network-thread | 
i-0a00080f294c267cf-StreamThread-3-producer] [Producer 
clientId=i-0a00080f294c267cf-StreamThread-3-producer] Uncaught error in request 
completion: (org.apache.kafka.clients.NetworkClient)
   > 
soak_44.244.234.161/streams.log.2025-06-30-22:59-java.lang.IllegalStateException:
 batch created for -1 can't be found.
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.lambda$handleProduceResponse$2(Sender.java:620)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.lambda$handleProduceResponse$3(Sender.java:597)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
java.base/java.lang.Iterable.forEach(Iterable.java:75)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.handleProduceResponse(Sender.java:597)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.lambda$sendProduceRequest$9(Sender.java:904)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.ClientResponse.onComplete(ClientResponse.java:154)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.NetworkClient.completeResponses(NetworkClient.java:669)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:661)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:340)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:242)
   > soak_44.244.234.161/streams.log.2025-06-30-22:59-  at 
java.base/java.lang.Thread.run(Thread.java:840)
   > ```
   
   This is basically same state as NPE but with `IllegalStateException` where 
tooic name is empty and topic id not part of initial metadata passed down from 
`sendProduceRequest`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to