[Bug]: Kafka operator keeps restarting kafka pods often with log entry "logging needs to be reconfigured." #8840
Replies: 6 comments
-
I think you will need to share the full logs from the operator and full configurations (the custom resources and any related config maps). Copy-pasting a single line is not helpful and neither are screenshots where it is absolutely unclear what do they show. |
Beta Was this translation helpful? Give feedback.
-
@scholzj screenshots just show that operator restarting pods with msg line I have updated the description now with kafka custom resource, and kafka config map + operator logs for a full reconciliation run where pods were restarted, I hope updated info helps. thx. |
Beta Was this translation helpful? Give feedback.
-
I do not see any full logs or CRs in the description :-/. |
Beta Was this translation helpful? Give feedback.
-
Not sure what happened, but updated now. |
Beta Was this translation helpful? Give feedback.
-
Ok, I see it now. But I do not see it rolling any pods / restarting brokers. All this message means is that it will connect to the broker to see if the logging configuration is up to date and if not, it will try to updated it dynamically if possible. So I think this has nothing to do with |
Beta Was this translation helpful? Give feedback.
-
Triaged on 13.7.2023: Seems more like an issue of a particular environment rather than a general bug. Should be converted to discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
Kafka operator keeps restarting kafka pods often with log entry "logging needs to be reconfigured." this is causing NotLeaderOrFollowerException in clients connecting to kafka.
I have no overrides in my kafka CR for logging.
ERROR In client:
org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now
ERROR In operator logs:
2023-07-05 19:53:01 DEBUG KafkaRoller:506 - Reconciliation #8726(timer) Kafka(test-dev/test-cluster): Pod {test-cluster-kafka-2} logging needs to be reconfigured.
K8s resources CR and CM
Steps to reproduce
No response
Expected behavior
Don't want operator to restart kafka broker pods
Strimzi version
0.31.1
Kubernetes version
v1.24.13-gke.2500
Installation method
No response
Infrastructure
No response
Configuration files and logs
kafka-operator-logs.txt
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions