Replies: 2 comments 3 replies
-
You would have to share the full logs from the operator and Kafka nodes and the configurations for anyone to be able to understand what exactly the problem is. |
Beta Was this translation helpful? Give feedback.
-
kafka CRD yaml `apiVersion: kafka.strimzi.io/v1beta2
|
Beta Was this translation helpful? Give feedback.
-
We have strimzi kafka cluster running with 3 brokers , the kafka CR is suddenly going into Not Ready state after being healthy for sometime , the status in CR says io.strimzi.operator.cluster.operator.resource.KafkaRoller$UnforceableProblem: Pod apps-kafka-2 cannot be updated right now.
Below is the kafka logs for the apps-kafka-2
,896 INFO [Partition __consumer_offsets-4 broker=2] ISR updated to 0,2,1 and version updated to 3341 (kafka.cluster.Partition) [zk-broker-2-to-controller-alter-partition-channel-manager] 2024-10-08 06:36:35,897 INFO [Partition __consumer_offsets-33 broker=2] ISR updated to 0,2,1 and version updated to 3347 (kafka.cluster.Partition) [zk-broker-2-to-controller-alter-partition-channel-manager] 2024-10-08 06:36:35,897 INFO [Partition dbm-changes-mongodb.risk_orchestrator_riskdata.multi_platform_detection_advanceai_aggregate-0 broker=2] ISR updated to 0,2,1 and version updated to 240 (kafka.cluster.Partition) [zk-broker-2-to-controller-alter-partition-channel-manager] 2024-10-08 06:36:36,301 DEBUG [Controller id=2] Updating ISRs for partitions: Set(__consumer_offsets-46). (kafka.controller.KafkaController) [controller-event-thread] 2024-10-08 06:36:36,307 DEBUG [Controller id=2] ISR for partition __consumer_offsets-46 updated to LeaderAndIsr(leader=2, leaderEpoch=2030, isrWithBrokerEpoch=List(BrokerState(brokerId=0, brokerEpoch=-1), BrokerState(brokerId=2, brokerEpoch=-1), BrokerState(brokerId=1, brokerEpoch=-1)), leaderRecoveryState=RECOVERED, partitionEpoch=3341). (kafka.controller.KafkaController) [controller-event-thread] 2024-10-08 06:36:36,313 INFO [Controller id=2 epoch=812] Sending UpdateMetadata request to brokers HashSet(0, 1, 2) for 1 partitions (state.change.logger) [controller-event-thread] 2024-10-08 06:36:36,315 TRACE [Broker id=2] Cached leader info UpdateMetadataPartitionState(topicName='__consumer_offsets', partitionIndex=46, controllerEpoch=812, leader=2, leaderEpoch=2030, isr=[0, 2, 1], zkVersion=3341, replicas=[1, 2, 0], offlineReplicas=[]) for partition __consumer_offsets-46 in response to UpdateMetadata request sent by controller 2 epoch 812 with correlation id 12 (state.change.logger) [control-plane-kafka-request-handler-0] 2024-10-08 06:36:36,316 INFO [Broker id=2] Add 1 partitions and deleted 0 partitions from metadata cache in response to UpdateMetadata request sent by controller 2 epoch 812 with correlation id 12 (state.change.logger) [control-plane-kafka-request-handler-0] 2024-10-08 06:36:36,317 TRACE [Controller id=2 epoch=812] Received response UpdateMetadataResponseData(errorCode=0) for request UPDATE_METADATA with correlation id 12 sent to broker apps-kafka-2.apps-kafka-brokers.kafka.svc:9090 (id: 2 rack: null) (state.change.logger) [Controller-2-to-broker-2-send-thread] 2024-10-08 06:36:36,316 INFO [Partition __consumer_offsets-46 broker=2] ISR updated to 0,2,1 and version updated to 3341 (kafka.cluster.Partition) [zk-broker-2-to-controller-alter-partition-channel-manager] 2024-10-08 06:36:36,323 TRACE [Controller id=2 epoch=812] Received response UpdateMetadataResponseData(errorCode=0) for request UPDATE_METADATA with correlation id 12 sent to broker apps-kafka-0.apps-kafka-brokers.kafka.svc:9090 (id: 0 rack: null) (state.change.logger) [Controller-2-to-broker-0-send-thread] 2024-10-08 06:36:36,380 TRACE [Controller id=2 epoch=812] Received response UpdateMetadataResponseData(errorCode=0) for request UPDATE_METADATA with correlation id 9 sent to broker apps-kafka-1.apps-kafka-brokers.kafka.svc:9090 (id: 1 rack: null) (state.change.logger) [Controller-2-to-broker-1-send-thread] 2024-10-08 06:36:36,407 DEBUG [Controller id=2] Updating ISRs for partitions: Set(__consumer_offsets-28). (kafka.controller.KafkaController) [controller-event-thread] 2024-10-08 06:36:36,414 DEBUG [Controller id=2] ISR for partition __consumer_offsets-28 updated to LeaderAndIsr(leader=2, leaderEpoch=2030, isrWithBrokerEpoch=List(BrokerState(brokerId=0, brokerEpoch=-1), BrokerState(brokerId=2, brokerEpoch=-1), BrokerState(brokerId=1, brokerEpoch=-1)), leaderRecoveryState=RECOVERED, partitionEpoch=3341). (kafka.controller.KafkaController) [controller-event-thread] 2024-10-08 06:36:36,417 INFO [Controller id=2 epoch=812] Sending UpdateMetadata request to brokers HashSet(0, 1, 2) for 1 partitions (state.change.logger) [controller-event-thread] 2024-10-08 06:36:36,420 TRACE [Broker id=2] Cached leader info UpdateMetadataPartitionState(topicName='__consumer_offsets', partitionIndex=28, controllerEpoch=812, leader=2, leaderEpoch=2030, isr=[0, 2, 1], zkVersion=3341, replicas=[1, 2, 0], offlineReplicas=[]) for partition __consumer_offsets-28 in response to UpdateMetadata request sent by controller 2 epoch 812 with correlation id 13 (state.change.logger) [control-plane-kafka-request-handler-0]
Strimzi-operator logs
2024-10-08 06:47:01 WARN AbstractOperator:556 - Reconciliation #1909(timer) Kafka(kafka/apps): Failed to reconcile io.strimzi.operator.cluster.operator.resource.KafkaRoller$UnforceableProblem: Pod apps-kafka-2 cannot be updated right now. at io.strimzi.operator.cluster.operator.resource.KafkaRoller.restartIfNecessary(KafkaRoller.java:477) ~[io.strimzi.cluster-operator-0.42.0.jar:0.42.0] at io.strimzi.operator.cluster.operator.resource.KafkaRoller.lambda$schedule$7(KafkaRoller.java:376) ~[io.strimzi.cluster-operator-0.42.0.jar:0.42.0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?]
Beta Was this translation helpful? Give feedback.
All reactions