José Armando García Sancio created KAFKA-14310:
--------------------------------------------------
Summary: EventQueueTimeMs is incorrent for delayed events
Key: KAFKA-14310
URL: https://issues.apache.org/jira/browse/KAFKA-14310
Project: Kafka
Issue Type: Bug
Components: controller, kraft
Reporter: José Armando García Sancio
Assignee: José Armando García Sancio
Some delayed events don't contribute to the EventQueueTimeMs while other
delayed event contribute incorrectly by counting the the amount of time they
were parked waiting for the event to expired.
All controller events `ControllerWriteEvent`, `ControllerReadEvent`,
`ControlEvent` and anything that derives from `EventQueue.Event` can be
deferred. When they are, their deferred time is included in the
`EventQueueTimeMs`.
KAFKA-14178 attempted to fix this issue by simply not contributing to the
`EventQueueTimeMs` for some of those event. For example, delayed snapshot
generation event still contribute to this metric.
KAFKA-14178 introduce a boolean for deferred events. Instead the solution
should include the deferred time and subtract from the computed
`EventQueueTimeMs`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)