-
|
Hello, As soon as kafka cluster is rebalanced, there is error seen as below and sometimes kafka PODs are re-started as well. Can you please give inputs if any? {"version": "1.2.0", "timestamp": "2025-08-02T02:57:28.405+00:00", "severity": "error", "service_id": "eric-data-messagebus-kf", "message": "[Broker id=0] Received LeaderAndIsrRequest with correlation id 1 from controller 2 epoch 1 for partition internal-readiness-check_eric-bss-em-kb-operand-emoperand-kafka-0-0 (last update controller epoch 1) but cannot become follower since the new leader -1 is unavailable.", "metadata": {"container_name": "kafka", "pod_name": "eric-bss-em-kb-operand-emoperand-kafka-0"}, "extra_data": {"file": "Logging.scala", "line": "74", "mbkf_cluster_name": "eric-bss-em-kb-operand-emoperand"}} Rgds, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
This error could be caused by a couple different things like if the broker that was the elected leader for this partition was down or was unreachable. Usually these kinds of issues sort themselves out however, I am not sure why the Kafka brokers would restarted. If you are able to capture the full broker logs when this happens again and upload them as attachments along with the full broker configurations I could take a closer look if you would like.
With the use of the word "PODs" I assume you are running Cruise Control in Kubernetes, is that correct? If so, it might be worth chasing up the question in a forum dedicated to that operator since the operator configurations and logs may shed so light on the underlying cause of the error as well. Regardless, if you upload the related logs here, I will be best to diagnose and if I cannot, I will redirect you to someone who can. |
Beta Was this translation helpful? Give feedback.
The
PreferredLeaderElectionGoalwould be violated if Cruise Control was unable to generate a partition reassignment plan that would elect the preferred leaders as leaders as part of the rebalance.On a side note, be careful about executing administrative commands manually like this while using a Kubernetes operator as it is generally not supported. Most Kubernetes operators provide an interface to preform such administrative tasks safely without interfering with other ongoing operations.