CommitFailedException API Origin: Application & API OSI layer 7 · Application Last updated 2 Dec 2026

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.records too high for the work per record
  • Long GC pauses or blocking I/O in the handler
  • Session timeout too low

⚡ Quick fix

  1. Reduce max.poll.records
  2. Increase max.poll.interval.ms
  3. Move slow work to another thread and keep polling

Detailed fix by platform

Kafka consumer

  1. max.poll.interval.ms=600000 and max.poll.records=100

How to diagnose

  1. Time — Processing per batch?
  2. Setting — max.poll.interval?
  3. 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:

🧠 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.