kevin-wu24 commented on code in PR #18304:
URL: https://github.com/apache/kafka/pull/18304#discussion_r1901115609


##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -3515,6 +3519,14 @@ public Optional<Node> voterNode(int id, ListenerName 
listenerName) {
         return partitionState.lastVoterSet().voterNode(id, listenerName);
     }
 
+    public int ignoredStaticVoters() {
+        return partitionState.lastVoterSetOffset().isPresent() ? 1 : 0;
+    }
+
+    public int isObserver() {
+        return quorum.isObserver() ? 1 : 0;
+    }

Review Comment:
   The `current-state` metric does include "observer" as one of its potential 
values.



-- 
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]

Reply via email to