conduktor.io ↗

KIP-566 — Add rebalance callbacks to ConsumerInterceptor

Discussion Consumer

Extends ConsumerInterceptor to also implement ConsumerRebalanceListener, adding onPartitionsRevoked/onPartitionsAssigned callbacks to the interceptor lifecycle. Without this, interceptors that maintain per-partition state (e.g., for metrics or tracing) have no way to clean up or reinitialize state when partitions are reassigned.

Details

AuthorTommy Becker
StatusDiscussion
WikiView on Apache Wiki
Created2020-01-23
Last Modified2020-01-24
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.