Skip to content

Consumer leaves the group when combined processing+backoff time is higher than max.poll.interval.ms #2542

Closed
@truepele

Description

@truepele

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 the max.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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions