Kafka check API version stuck
What's inside this article
⌄
- Kafka stuck checking API versions
- Kafka client version check hanging
- Kafka connection stuck state
- Fix Kafka check API version
If you face problems such as:
- Kafka Consumer is not being involved in rebalance process
- Kafka Consumer is not reading messages
- Partitions are not allocated to the Kafka Consumer, but the Consumer is subscribed to the topic
- Kafka Consumer connection gets stuck in
CHECKING_API_VERSIONS` state - Kafka Producer connection gets stuck in
CHECKING_API_VERSIONSstate
Then this is a bug in the kafka-clients library. You need to upgrade Kafka to versions 3.0.1, 3.2.0, 3.1.1.
It is described in Kafka’s Jira ticket.
You can monitor connections between your Kafka Consumer and Kafka Brokers using code from this article.