Because of this delay, Kafka assumed the consumer was dead and revoked its partitions.
To fix it:
Make sure your processing inside poll() isn’t taking too long.
You can either increase max.poll.interval.ms or process records faster before the next poll() call.