-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/kafka] Cannot easily scale up kafka brokers - INCONSISTENT_CLUSTER_ID #31404
Comments
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Do you folks have any ideas how to fix it? I can propose some solutions. Some options:
|
I will close the issue. I started investigating it a bit more. It seems if you create new kafka cluster you can scale up number of brokers, and they have consistent clusterID. I noticed the problem was when kafka cluster was created in helm chart version 25.1.5 (or even 18.X), then upgraded to 31.2.0 (with docker image versions), and then scaled up. |
Name and Version
bitnami/kafka 31.2.0
What architecture are you using?
amd64
What steps will reproduce the bug?
Are you using any custom parameters or values?
First install:
Upgrade later:
What is the expected behavior?
After increasing number of brokers they should join the cluster.
What do you see instead?
New kafka-broker-3 pod is ending in restart loop with errors in logs:
Upon investigation checking env variables all broker pods (even failing one - kafka-broker-3) has
Further investigation showed that in file
/bitnami/kafka/data/meta.properties
first 3 brokers have one cluster.id -WltRK7E1MVDcysEbLbO5SA
, while 4th (newly added) pod hasedU0ZBVBw4YH0bL0nXDxig
.Seems like during brokers creation there is some synchronization between broker nodes, but while cluster is being extended this is not happening out of the box.
Additional information
Upon deletion of
/bitnami/kafka/data/meta.properties
from PVC new file is being created when pod get restarted and at that time cluster.id in meta.properties file is same as KAFKA_KRAFT_CLUSTER_ID, which makes it impossible to add via helm chart.I didn't test behavior of meta.properties when kraft.clusterid is set. That might be helpful for newly created clusters, but not for already existing ones.
The text was updated successfully, but these errors were encountered: