On this page
Kafka Improvement Proposal
KIP-1222: renew the lock on a record in a share group
KIP-1222 adds a RENEW acknowledgement for share groups. A consumer processing a record that takes longer than the acquisition lock can renew the lock, so the record stays with it instead of being handed to another consumer and processed twice. It works in explicit acknowledgement mode and arrived in Kafka 4.2.
- Proposal
- KIP-1222, Acquisition lock timeout renewal in share consumer explicit mode
- Status
- Shipped New in Kafka 4.2 (2026); the share.renew.acknowledge.enable switch came in 4.3 (KIP-1240).
- Area
- Consumer groups and queues
- Proposal page
- KIP-1222 on the Apache Kafka wiki
Why it was needed
In a share group (KIP-932) each record is locked to one consumer for a fixed time, 30 seconds by default. If processing takes longer, the lock expires, the record goes back to the queue and another consumer gets it, so slow jobs were processed twice. Raising the lock time for everyone slowed down redelivery after real failures.
What it changes
The consumer acknowledges a record with the new type RENEW, which restarts the lock timer without changing the record's state. Renewals go out with the next commit or poll, and a consumer can ask how long the lock lasts. There is no limit on renewals, so a consumer that renews forever holds the record forever.
How to use it
- Use explicit acknowledgement mode and acknowledge with AcknowledgeType.RENEW before the lock runs out; ShareConsumer.acquisitionLockTimeoutMs() tells you the lock length.
- Since Kafka 4.3 the group config share.renew.acknowledge.enable (default true) can turn renewals off for a group.
Where it stands
Shipped in Kafka 4.2, the release in which share groups became production-ready. A client using RENEW against an older broker gets UnsupportedVersionException.
What comes next
Share groups keep gaining features in follow-up KIPs, such as the dead-letter queue of KIP-1191 in Kafka 4.4.
See it in the simulator
- Renew a Kafka share group acquisition lock (KIP-1222) (RENEW: extending an acquisition lock) Step 3: Renew extends the lock Open at this step: Renew a Kafka share group acquisition lock (KIP-1222)
- Renew a Kafka share group acquisition lock (KIP-1222) (RENEW: extending an acquisition lock) Step 5: Control redelivered; renew never duplicated Open at this step: Renew a Kafka share group acquisition lock (KIP-1222)
Sources
- KIP-1222: Acquisition lock timeout renewal in share consumer explicit mode
- Apache Kafka 4.2.0 release announcement
- Apache Kafka 4.4: group configs