hachikuji commented on a change in pull request #9871:
URL: https://github.com/apache/kafka/pull/9871#discussion_r558456316



##########
File path: raft/src/main/java/org/apache/kafka/raft/QuorumState.java
##########
@@ -196,7 +203,15 @@ public void initialize(OffsetAndEpoch 
logEndOffsetAndEpoch) throws IOException,
     }
 
     public Set<Integer> remoteVoters() {
-        return voters.stream().filter(voterId -> voterId != 
localId).collect(Collectors.toSet());
+        return voters.stream().filter(voterId -> voterId != 
localIdOrNil()).collect(Collectors.toSet());
+    }
+
+    public int localIdOrNil() {

Review comment:
       Fair enough. I guess "nil" suggests zero.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to