Luke Chen created KAFKA-14284:
---------------------------------
Summary: "current-vote" metric is always leaderId under
non-election state
Key: KAFKA-14284
URL: https://issues.apache.org/jira/browse/KAFKA-14284
Project: Kafka
Issue Type: Bug
Components: kraft
Affects Versions: 3.3.1
Reporter: Luke Chen
Assignee: Luke Chen
The current-vote metric in:
{code:java}
kafka.server:type=raft-metrics,name=current-vote{code}
It is always showing the leader id, even it's not in election state. Compared
to the "quorum-state" file, the votedId will show -1 if it's not in "candidate"
or "voted" state, which makes more sense.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)