Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess the brokers are not working because the controllers are not working. But it is not really clear to me from the logs what the issue is. Perhaps a good start would be to share more details. Some obvious things are missing:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
k8s version 1.28.15 operator version 0.46.0 kafka 4.0.0
The controller keeps reporting an error "2025-06-30 10:31:01 INFO [kafka-4-raft-io-thread] KafkaRaftClient:3136 - [RaftManager id=4] Election timed out before receiving sufficient vote responses to become candidate. Current epoch election state: EpochElection(voterStates={3=VoterState(replicaKey=ReplicaKey(id=3, directoryId=), state=UNRECORDED), 4=VoterState(replicaKey=ReplicaKey(id=4, directoryId=), state=GRANTED), 5=VoterState(replicaKey=ReplicaKey(id=5, directoryId=), state=UNRECORDED)})
", and the broker keeps reporting an error
“2025-06-30 10:53:55 ERROR [main] BrokerServer:72 - [BrokerServer id=2] Received a fatal error while waiting for the controller to acknowledge that we are caught up
java.util.concurrent.CancellationException: null
at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2478) ~[?:?]
at kafka.server.BrokerLifecycleManager$ShutdownEvent.run(BrokerLifecycleManager.scala:638) ~[kafka_2.13-4.0.0.jar:?]
at org.apache.kafka.queue.KafkaEventQueue$EventHandler.run(KafkaEventQueue.java:191) ~[kafka-server-common-4.0.0.jar:?]
at java.base/java.lang.Thread.run(Thread.java:840) ~[?:?]
2025-06-30 10:53:56 INFO [main] BrokerServer:66 - [BrokerServer id=2] Transition from STARTING to STARTED
2025-06-30 10:53:56 INFO [kafka-2-metadata-loader-event-handler] MetadataLoader:233 - [MetadataLoader id=2] initializeNewPublishers: the loader is still catching up because we still don't know the high water mark yet.
2025-06-30 10:53:56 INFO [broker-2-lifecycle-manager-event-handler] NodeToControllerChannelManagerImpl:66 - Node to controller channel manager for heartbeat shutdown
2025-06-30 10:53:56 INFO [kafka-2-metadata-loader-event-handler] MetadataLoader:233 - [MetadataLoader id=2] initializeNewPublishers: the loader is still catching up because we still don't know the high water mark yet.
2025-06-30 10:53:56 INFO [kafka-2-raft-outbound-request-thread] NetworkClient:943 - [RaftManager id=2] Disconnecting from node 5 due to socket connection setup timeout. The timeout value is 30000 ms.
2025-06-30 10:53:56 ERROR [main] BrokerServer:82 - [BrokerServer id=2] Fatal error during broker startup. Prepare to shutdown
java.lang.RuntimeException: Received a fatal error while waiting for the controller to acknowledge that we are caught up
at org.apache.kafka.server.util.FutureUtils.waitWithLogging(FutureUtils.java:73) ~[kafka-server-common-4.0.0.jar:?]
at kafka.server.BrokerServer.startup(BrokerServer.scala:564) ~[kafka_2.13-4.0.0.jar:?]
at kafka.server.KafkaRaftServer.$anonfun$startup$2(KafkaRaftServer.scala:96) ~[kafka_2.13-4.0.0.jar:?]
at kafka.server.KafkaRaftServer.$anonfun$startup$2$adapted(KafkaRaftServer.scala:96) ~[kafka_2.13-4.0.0.jar:?]
at scala.Option.foreach(Option.scala:437) [scala-library-2.13.15.jar:?]
at kafka.server.KafkaRaftServer.startup(KafkaRaftServer.scala:96) [kafka_2.13-4.0.0.jar:?]
at kafka.Kafka$.main(Kafka.scala:97) [kafka_2.13-4.0.0.jar:?]
at kafka.Kafka.main(Kafka.scala) [kafka_2.13-4.0.0.jar:?]
Caused by: java.util.concurrent.CancellationException
at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2478) ~[?:?]
at kafka.server.BrokerLifecycleManager$ShutdownEvent.run(BrokerLifecycleManager.scala:638) ~[kafka_2.13-4.0.0.jar:?]
at org.apache.kafka.queue.KafkaEventQueue$EventHandler.run(KafkaEventQueue.java:191) ~[kafka-server-common-4.0.0.jar:?]
at java.base/java.lang.Thread.run(Thread.java:840) ~[?:?]
2025-06-30 10:53:56 INFO [main] BrokerServer:66 - [BrokerServer id=2] Transition from STARTED to SHUTTING_DOWN
2025-06-30 10:53:56 INFO [main] BrokerServer:66 - [BrokerServer id=2] shutting down
2025-06-30 10:53:56 INFO [main] SocketServer:66 - [SocketServer listenerType=BROKER, nodeId=2] Stopping socket server request processors”
Beta Was this translation helpful? Give feedback.
All reactions