Benton Liang created ZOOKEEPER-4620:
---------------------------------------

             Summary: zookeeper leader election time metric not reported 
correctly
                 Key: ZOOKEEPER-4620
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4620
             Project: ZooKeeper
          Issue Type: Bug
          Components: leaderElection, metric system
            Reporter: Benton Liang


We added support to pro-actively give up leadership when a node is going down. 
With this the leader nominates the next leader before giving up leader ship. 
This avoids the leadership election. There is a bug where they calculate the 
election time. Normally when the leadership election starts, the start time is 
noted, and after the election the delta between the current time and startup 
time is used to determine the leadership time. But now since we are avoiding 
the leadership election, the start time is not updated this shows up as a big 
delta.

example: `FOLLOWING - LEADER ELECTION TOOK - 1206674579 MS`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to