You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "NIKHIL (Jira)" <ji...@apache.org> on 2020/06/05 05:48:00 UTC

[jira] [Created] (KAFKA-10106) measure and log time taken to handle LeaderAndIsr request

NIKHIL created KAFKA-10106:
------------------------------

             Summary: measure and log time taken to handle LeaderAndIsr request 
                 Key: KAFKA-10106
                 URL: https://issues.apache.org/jira/browse/KAFKA-10106
             Project: Kafka
          Issue Type: Improvement
            Reporter: NIKHIL


ReplicaManager!becomeLeaderOrFollower handles the LeaderAndIsr request, StateChangeLogger logs when this request is handled, however it can be useful to log when this calls ends and record the time taken, can help operationally. 

Proposal is to ReplicaManager!becomeLeaderOrFollower start measuring the time before the `replicaStateChangeLock` is acquired and log before the response is returned. 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)