Dear Team,
While creating the KRaft cluster with 3 controllers and 3 brokers using the Confluent Operator, we created the controller resource definition file as shown below. However, upon startup, we are continuously encountering the exceptions mentioned below.
Could you please review and suggest what might be wrong?
Controller file:-
apiVersion: platform.confluent.io/v1beta1
kind: KRaftController
metadata:
name: kraftcontroller
namespace: kafka
spec:
oneReplicaPerNode: false
dataVolumeCapacity: 10G
image:
application: docker.io/confluentinc/cp-server:7.9.0
init: confluentinc/confluent-init-container:2.11.0
replicas: 3
configOverrides:
server:
- broker.id=1
- node.id=1
- cluster.id=ZbD3VucSSRupm5dJlDOwYQ
- confluent.balancer.enable=true
- confluent.operator.managed=true
- controller.listener.names=CONTROLLER
- controller.quorum.voters=1@kraftcontroller-0.kraftcontroller.kafka.svc.cluster.local:9074,2@kraftcontroller-1.kraftcontroller.kafka.svc.cluster.local:9074,3@kraftcontroller-2.kraftcontroller.kafka.svc.cluster.local:9074
- inter.broker.listener.name=REPLICATION
- listener.security.protocol.map=CONTROLLER:PLAINTEXT,REPLICATION:PLAINTEXT
- listeners=CONTROLLER://:9074
- log.dirs=/tmp/datalogs
- log.message.format.version=3.4
- num.network.threads=4
- process.roles=controller
- advertised.listeners=CONTROLLER://kraftcontroller-0:9074
Exception logs
ToCatchUp - [MetadataLoader id=1] initializeNewPublishers: the loader is still catching up because we still don’t know the high water mark yet.
[INFO] 2025-04-06 05:50:36,913 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,933 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,957 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,975 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,980 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,996 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:36,998 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:37,007 [kafka-1-metadata-loader-event-handler] org.apache.kafka.image.loader.MetadataLoader stillNeedToCatchUp - [MetadataLoader id=1] initializeNewPublishers: the loader is still catching up because we still don’t know the high water mark yet.
[INFO] 2025-04-06 05:50:37,016 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:50:37,041 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=2, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], 5pVL1Rivio2nNjWN6andVw); rejecting the vote
[INFO] 2025-04-06 05:51:17,768 [kafka-1-metadata-loader-event-handler] org.apache.kafka.image.loader.MetadataLoader stillNeedToCatchUp - [MetadataLoader id=1] initializeNewPublishers: the loader is still catching up because we still don’t know the high water mark yet.
[INFO] 2025-04-06 05:51:17,799 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=3, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], KmAWIt-XQzC4HhtAEvsNFA); rejecting the vote
[INFO] 2025-04-06 05:51:17,805 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=3, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], KmAWIt-XQzC4HhtAEvsNFA); rejecting the vote
[INFO] 2025-04-06 05:51:17,819 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=3, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], KmAWIt-XQzC4HhtAEvsNFA); rejecting the vote
[INFO] 2025-04-06 05:51:17,825 [kafka-1-raft-io-thread] org.apache.kafka.raft.KafkaRaftClient handleVoteRequest - [RaftManager id=1] Candidate sent a voter key (Optional[ReplicaKey(id=3, directoryId=Optional.empty)]) in the VOTE request that doesn’t match the local key (OptionalInt[1], KmAWIt-XQzC4HhtAEvsNFA); rejecting the vote