-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka consumer consumes all CPU when shutting down the broker #14366
Comments
Do you have a reproducer? That's weird... |
@gunnarmorling if you don't have a reproducer, maybe a thread dump would help? |
One reproducer, albeit not exactly minimal is here: https://github.com/debezium/debezium-examples/tree/master/distributed-caching#running-the-quarkus-services-locally-in-dev-mode. Make sure to adjust the exposed host name in the Compose file as described; then:
Then stop the broker ( |
I believe I know what's happening. The last time I checked it was not possible to configure the Kafka Network Client, and it was retrying to connect without any delay. I will have another look this afternoon. |
Fixed upstream. (keeping it opened as I will close it when we update Quarkus with SmallRye Reactive Messaging 2.8.0) |
@tsegismont investigated, and it seems to be a Kafka Client 2.5 issue. It does behave correctly with 2.6. |
For the record: https://issues.apache.org/jira/browse/KAFKA-10134. |
Wow, ok. That's quite something. Happy it got fixed.
… |
With SmallRye Reactive Messaging Kafka, when shutting down the broker, an application consuming topics will spike up to 100% CPU usage.
// CC @cescoffier
The text was updated successfully, but these errors were encountered: