conduktor.io ↗

KIP-1207 — Fix anomaly of JMX metrics RequestHandlerAvgIdlePercent in kraft combined mode

Accepted Kafka 4.2 KRaftMetrics

Fixes the RequestHandlerAvgIdlePercent JMX metric in KRaft combined mode (broker+controller co-located) where the value incorrectly reported ~2.0 instead of 0–1, and adds separate BrokerRequestHandlerAvgIdlePercent and ControllerRequestHandlerAvgIdlePercent metrics. In combined mode, two separate KafkaRequestHandlerPool objects both divided their idle time by numIoThreads before reporting to a shared Meter, effectively halving the denominator and doubling the reported ratio.

Details

Authortony tang
StatusAccepted
Kafka Version4.2
JIRAKAFKA-19606
WikiView on Apache Wiki
Created2025-08-19
Last Modified2025-10-16
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.