When the consumer does not receives a message for 5 mins (default value of max.poll.interval.ms 300000ms) the consumer comes to a halt without exiting the program. The consumer process hangs and does not consume any more messages.
The following error message gets logged
MAXPOLL|rdkafka#consumer-1| [thrd:main]: Application maximum poll interval (300000ms) exceeded by 255ms (adjust max.poll.interval.ms for long-running message processing): leaving group
I see that ErrMaxPollExceeded
is defined here in confluent-kafka-go but unable to find where it is getting raised.
If any such error is raised, why does the program not exit ?
- Kafka v1.1.0
- librdkafka v1.0.0
- confluent-kafka-go (master)
Config used for kafka.Consumer
{
"bootstrap.servers": "private.kafka.host",
"group.id": "foo.bar",
"auto.offset.reset": "earliest",
"enable.auto.commit": false,
}
Poll()
with a timeout of 100 ms – Tannertannery