Kafka: CommitFailedException: Commit cannot be completed since the group has already rebalanced
A consumer took too long between polls, so the group kicked it out and reassigned its partitions.
Exact message you may see
Commit cannot be completed since the group has already rebalancedKafka rebalance commit failed
Seen on:
Kafka
Meaning
If poll() is not called within max.poll.interval.ms (5 minutes by default), the consumer is considered dead. Its offset commit then fails because the partitions belong to someone else.
Common causes
- Slow processing between polls
max.poll.recordstoo high for the work per record- Long GC pauses or blocking I/O in the handler
- Session timeout too low
⚡ Quick fix
- Reduce
max.poll.records - Increase
max.poll.interval.ms - Move slow work to another thread and keep polling
Detailed fix by platform
Kafka consumer
max.poll.interval.ms=600000andmax.poll.records=100
How to diagnose
- Time — Processing per batch?
- Setting — max.poll.interval?
- Rebalance — Logged?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Most viewed in API
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Did this fix work for you?
Report a correction or suggest an improvement
Last updated 2 Dec 2026