KRaft: adding a controller role group can bootstrap a second quorum
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
In KRaft mode, exactly one controller formats its storage with --standalone and bootstraps the metadata quorum. All other controllers join it later through the quorum-manager
sidecar. This was introduced in #1010, which is not released yet.
The operator picks the bootstrap controller as the one with the lowest node.id in the current spec. Node IDs come from a hash of the role group name, so a controller role
group added later can get lower node IDs than the existing ones. Its first pod starts with an empty volume, formats with --standalone, and becomes the leader of a second,
single-voter quorum under the same cluster ID.
This is not an edge case: any second controller role group added next to it triggers the bug.
Impact
- The new controller never joins the real quorum and keeps its own metadata log under the same cluster ID.
- Nothing in the cluster status shows the problem. The KafkaCluster stays
Available, and the new controller'squorum-managersees itself as leader and does nothing. - Brokers that are already connected stay on the original quorum, so clients keep working. If the original controller role group is removed later, the brokers crash-loop.
- As a side effect, adding such a role group changes the start command of every existing controller, which restarts all of them.
Steps to reproduce
- Create a KRaft KafkaCluster with a
defaultcontroller role group (3 replicas) and a broker role group. - Add a controller role group named
extrawith 1 replica. - Run
kafka-metadata-quorum.sh describe --replicationagainstextra-0. It reports a single-voter quorum led by itself, not the original quorum with 4 voters.
Known limitations (out of scope)
- If the status is lost, the operator chooses the bootstrap controller again from the current spec.
- Lingua principale
- Rust
- Stelle
- 31
- Fork
- 9
- Merge medio
- 4g 5h
- PR unite (30g)
- 14
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stackabletech/kafka-operator
-
Use mTLS instead of Kerberos for KRaft inter-node trafficForse già presa @razvan l’ha presa 1 giorno fa. Apertatype/internal-improvement
stackabletech/kafka-operator#1066 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
KRaft: a new controller can bootstrap against itself and never join the quorumForse già presa @razvan l’ha presa 1 giorno fa. Apertatype/bug
stackabletech/kafka-operator#1062 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
stackabletech/kafka-operator#1059 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/kafka-operator#1058 ·
I maintainer di solito rispondono entro 1 giorno
-
type/bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
stackabletech/kafka-operator#955 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stackabletech/kafka-operator
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
storytold/photocraft#14822 ·
I maintainer di solito rispondono entro 1 giorno
-
bug css
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
dginev/latexml-oxide#853 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug] export_build_environment admits its output directory only after the export ran in the build computerForse già presa @viniciusdsandrade l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno