quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.84k stars 2.7k forks source link

Kafka Streams producer thread hung or infinite wait state #42616

Open nsnmurthyk opened 3 months ago

nsnmurthyk commented 3 months ago

We noticed an issue where one producer thread is hung or infinite wait.

KAFKA: strimzi/kafka:0.22.1-kafka-2.5.0

KAFKA Client: 3.6.2

We recovered the same by restarting our application. Please let me know your comments on this.

java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(java.base@17.0.8.1/Native Method)

quarkus-bot[bot] commented 3 months ago

/cc @alesj (kafka), @cescoffier (kafka), @ozangunalp (kafka)

ozangunalp commented 3 months ago

I don't think this is Quarkus-related. The producer blocking timeout can be configured with max.block.ms property, and by default is 60 seconds. I don't know how it can block there indefinitely.