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
| Author | Paweł Szymczyk |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-18836 |
| Wiki | View on Apache Wiki |
| Created | 2025-02-21 |
| Last Modified | 2025-10-20 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.