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

   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([email protected]/Native Method)
        - parking to wait for  <0x000000072a34ed28> (a 
java.util.concurrent.CountDownLatch$Sync)
        at 
java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:211)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.java:715)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1047)
        at 
java.util.concurrent.CountDownLatch.await([email protected]/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 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to