On this page
Kafka Improvement Proposal
KIP-1274: retiring the classic consumer group protocol
KIP-1274 is the plan to retire the classic rebalance protocol from the Java KafkaConsumer. Kafka 4.3 logs a recommendation to switch, Kafka 5.0 makes group.protocol=consumer (KIP-848) the default and deprecates classic, and Kafka 6.0 removes classic from KafkaConsumer. Brokers keep serving classic groups for other clients.
- Proposal
- KIP-1274, Deprecate and remove support for Classic rebalance protocol in KafkaConsumer
- Status
- Shipped Phase 1 in Kafka 4.3 (2026); default switch planned for 5.0, removal for 6.0.
- Area
- Consumer groups and queues
- Proposal page
- KIP-1274 on the Apache Kafka wiki
Why it was needed
Kafka has carried two consumer group protocols since KIP-848 went GA in 4.0: the old client-driven one and the new broker-driven one. Keeping both in the Java client doubles the code and the tests, and new features land only on the new protocol, while most users stay on classic simply because it is the default.
What it changes
The change happens in three phases. Phase one (Kafka 4.3) only logs an INFO message suggesting the new protocol. Phase two (Kafka 5.0) changes the default and deprecates the classic protocol and its settings: partition.assignment.strategy, session.timeout.ms and heartbeat.interval.ms on the client, enforceRebalance and custom client-side assignors. Phase three (Kafka 6.0) removes them; setting them then fails.
How to use it
- Test group.protocol=consumer now, on Kafka 4.0 or newer brokers (4.2 or newer recommended); an existing group converts during a rolling restart.
- Move session and heartbeat tuning to the broker settings group.consumer.session.timeout.ms and group.consumer.heartbeat.interval.ms, and port custom assignors to the broker-side assignor interface.
Where it stands
Accepted, with phase one shipped in Kafka 4.3. Phases two and three are tied to the 5.0 and 6.0 major releases, which have no dates yet. Kafka Streams is not covered; it has its own new protocol (KIP-1071).
What comes next
Kafka 5.0 is the next milestone. Related clean-ups land at the same time, such as removing the broker setting group.coordinator.rebalance.protocols (KIP-1237).
See it in the simulator
- Kafka eager vs cooperative rebalancing (cooperative-sticky) (Rebalance: eager vs cooperative) Step 6: Cooperative rebalance - only the mover stops Open at this step: Kafka eager vs cooperative rebalancing (cooperative-sticky)
- Kafka eager vs cooperative rebalancing (cooperative-sticky) (Rebalance: eager vs cooperative) Step 3: Eager rebalance - stop-the-world Open at this step: Kafka eager vs cooperative rebalancing (cooperative-sticky)
Sources
- KIP-1274: Deprecate and remove support for Classic rebalance protocol in KafkaConsumer
- Apache Kafka 4.3.0 release announcement
- Apache Kafka 4.4: consumer rebalance protocol