Farfetch / kafkaflow

Apache Kafka .NET Framework to create applications simple to use and extend.
https://farfetch.github.io/kafkaflow/
MIT License
653 stars 118 forks source link

[Bug Report]: Consumer Stuck on Exceeding Max Poll Interval #492

Closed filipeesch closed 11 months ago

filipeesch commented 11 months ago

Prerequisites

Description

The consumer may become unresponsive if it exceeds the maximum polling interval and is then requested to stop.

Steps to reproduce

  1. Create a new consumer.

  2. Make sure to configure the consumer with a short maximum poll interval.

  3. Create a scenario where the consumer takes more time than the configured maximum poll interval by adding an artificial delay.

  4. Once the maximum poll interval has been exceeded, the partitions will be revoked and the consumer will be asked to stop. After that, the StopAsync() method will remain blocked indefinitely.

Expected behavior

The consumer must stop immediately when the partition is revoked due to exceeding the maximum poll interval.

Actual behavior

The consumer gets stuck and never stops.

KafkaFlow version

v3.0.1