[
https://issues.apache.org/jira/browse/KAFKA-13165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17393313#comment-17393313
]
Colin McCabe edited comment on KAFKA-13165 at 8/4/21, 4:38 PM:
---------------------------------------------------------------
The node ID space of controllers and brokers is disjoint. So we cannot find out
anything useful by checking if the broker's node.id is in
controller.quorum.voters.
Brokers should be observers in the raft quorum, so I don't see how the broker
becoming a leader could possibly happen. Maybe this is a loophole we need to
close. We should be able to tell the RaftClient whether it is an observer or a
voter.
was (Author: cmccabe):
The node ID space of controllers and brokers is disjoint. So we cannot find out
anything useful by checking if the broker's node.id is in
controller.quorum.voters.
Brokers should be observers in the raft quorum, so I don't see how the broker
becoming a leader could be a problem. Maybe this is a loophole we need to
close. We should be able to tell the RaftClient whether it is an observer or a
voter.
> Validate node id, process role and quorum voters
> ------------------------------------------------
>
> Key: KAFKA-13165
> URL: https://issues.apache.org/jira/browse/KAFKA-13165
> Project: Kafka
> Issue Type: Sub-task
> Components: kraft
> Reporter: Jose Armando Garcia Sancio
> Priority: Major
>
> Under certain configuration is possible for the Kafka Server to boot up as a
> broker only but be the cluster metadata quorum leader. We should validate the
> configuration to avoid this case.
> # If theĀ {{process.roles}} contains {{controller}} then the {{node.id}}
> needs to be in the {{controller.quorum.voters}}
> # If theĀ {{process.roles}} doesn't contain {{controller}} then the
> {{node.id}} cannot be in the {{controller.quorum.voters}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)