Handle redeployments
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- kubernetes, rust
- Ambito
- distributed-systems, infrastructure
Direzione di ricerca
Inizia riproducendo la sequenza apply, delete e reapply con i manifest ZookeeperCluster, ZookeeperZnode e KafkaCluster forniti, quindi traccia come vengono gestiti i volumi persistenti e l’identità del cluster durante la riconciliazione. Il lavoro è completato quando il secondo deployment si avvia correttamente senza la InconsistentClusterIdException, oppure quando l’issue documenta una limitazione confermata e il comportamento di ripristino richiesto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Affected version
kafka-operator 0.5.0 and zk-operator 0.9.0
Current and expected behavior
If i apply, delete and apply the following stackable crds the kafka cluster works for the first apply but not anymore for the second time.
---
apiVersion: zookeeper.stackable.tech/v1alpha1
kind: ZookeeperCluster
metadata:
name: simple-zk
spec:
version: 3.8.0
servers:
roleGroups:
default:
replicas: 3
config: {}
---
apiVersion: zookeeper.stackable.tech/v1alpha1
kind: ZookeeperZnode
metadata:
name: simple-kafka-znode
spec:
clusterRef:
name: simple-zk
namespace: default
---
apiVersion: kafka.stackable.tech/v1alpha1
kind: KafkaCluster
metadata:
name: simple-kafka
spec:
version: 3.1.0
zookeeperConfigMapName: simple-kafka-znode
brokers:
roleGroups:
default:
replicas: 3
In the logs i can find the following error message:
[2022-04-26 14:21:18,645] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID dOMtDqQ_QU6rqOpOeyosIA doesn't match stored clusterId Some(7tfltX7ATz-aIURko5dtnQ) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
at kafka.server.KafkaServer.startup(KafkaServer.scala:228)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
Problem is that the ZKCluster ID gets saved in the first apply. Since the volumes are persistent over kubectl delete -f kafka.yaml and the ZKCluster generates a new ID on the redeploy the Kafka cluster is stuck.
Possible solution
I am wondering why ZK gets a new ClusterID on every restart. Shouldnt the ID be fixed since the data inside the Cluster doesn't change (persistent volumes)?
If the id change is inevitable the Kafka cluster should tolerate the ID change of the ZKCluster.
Additional context
No response
Environment
Client Version: v1.23.6
Server Version: v1.22.6
Would you like to work on fixing this bug?
yes
- Lingua principale
- Rust
- Stelle
- 28
- Fork
- 8
- Merge medio
- 2g 12h
- PR unite (30g)
- 9
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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
-
type/bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
stackabletech/kafka-operator#955 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/kafka-operator#941 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/kafka-operator#874 ·
-
Kafka 4.x Apertarefinement-needed
stackabletech/kafka-operator#870 · 5 commenti · 2 assegnatari ·
-
customer-request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
stackabletech/kafka-operator#859 ·
Tutte le issue di stackabletech/kafka-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
gitbutlerapp/gitbutler#15998 · 1 commento ·
-
bug triage:deciding
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100