conduktor.io ↗

KIP-1136 — Make ConsumerGroupMetadata an interface

Accepted Kafka 4.2 TransactionsConsumer

Makes ConsumerGroupMetadata an interface instead of a concrete class so that frameworks (e.g., Kafka Streams with EOS) can provide custom implementations without depending on the internal constructor. The class is passed to KafkaProducer.sendOffsetsToTransaction() to carry group metadata for transactional offset commits; making it an interface enables mock implementations in tests and custom metadata carriers in frameworks.

Details

AuthorPaweł Szymczyk
StatusAccepted
Kafka Version4.2
JIRAKAFKA-18836
WikiView on Apache Wiki
Created2025-02-21
Last Modified2025-10-20
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.