Closed
Description
In what version(s) of Spring for Apache Kafka are you seeing this issue?
2.8.x -2.9.x
Describe the bug
On error handling (via FallbackBatchErrorHandler
) consumer leaves the group when combined processing+backoff time is higher than max.poll.interval.ms
.
To Reproduce
- Configure
DefaultErrorHandler
with a fixed backoff interval which is few seconds below themax.poll.interval.ms
- Implement some processing code which has a delay for several seconds (such that the delay + the configured backoff time is higher than
max.poll.interval.ms
) and then throws an exception. - Run the application
Expected behavior
The failed processing should be retried after the backoff delay without consumer leaving the consumer group
Actual behaviour
Consumer leaves the group due to inactivity for longer than max.poll.interval.ms