Kafka consumer group rebalancing behavior when max.poll.interval.ms times out during cancellation
Problem Context Apache Kafka consumers have built-in mechanisms for graceful shutdown through the consumer.wakeup() method, which throws WakeupException to interrupt the poll loop. However, the interaction between cancellation handling and rebalance timeouts requires careful consideration. The max.poll.interval.ms configuration (defaulting to 7 minutes) defi