niket-goel commented on code in PR #12679:
URL: https://github.com/apache/kafka/pull/12679#discussion_r979129298
##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -246,7 +246,9 @@ public KafkaRaftClient(
logContext,
random);
this.kafkaRaftMetrics = new KafkaRaftMetrics(metrics, "raft", quorum);
-
kafkaRaftMetrics.updateNumUnknownVoterConnections(quorum.remoteVoters().size());
+ // All Raft voters are statically configured and known at startup
+ // so there are no unknown voter connections. Report this metric as 0.
+ kafkaRaftMetrics.updateNumUnknownVoterConnections(0);
Review Comment:
Yeah! Was planning on filing a JIRA and KIP for its removal. Will do that
next week. :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]