Kafka java consumer freezes after rebalance failure

ぃ、小莉子 提交于 2019-12-23 18:00:29

问题


we experienced an annoying Kafka consumer problem after a failure in consumer rebalancing. It seems we had network issues at a given time which caused a ZK session expiration. This triggered a re-registration of the consumers and then a rebalancing.
The rebalancing failed after 4 tries (rebalance.retries.max=4). On the consumer client sides (Java Kafka Consumers), we did not receive any notification of the pb. We were just not getting any new message, and the clients were running several hours without reading any message.

Is there a way to get notified in the consumers for such rebalancing failures, so that we can monitor and maybe restart our consumers?

来源:https://stackoverflow.com/questions/25762244/kafka-java-consumer-freezes-after-rebalance-failure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!