I'm in the early stages of learning Kafka, version 0.8.1.1.
I am successfully running an example of a consumer group, with many sections and its distribution messages among consumers, pretty well.
One test case I wanted to run was when a consumer in a group dies suddenly (e.g. kill -9). When I do this, I expected a rebalancing to happen, but that would not happen. So can I do one of these things?
- Trigger rebalancing using API
- Configure kafka to wait a certain time for consumer activity and rebalancing automatically, considering that it was closed carefree.
The problem is that all messages in the sections assigned to the dead consumer remain in the queue and are never processed until rebalancing occurs.
apache-kafka
binit
source share