Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.8.0
-
None
-
None
Description
Happens on kafka-0.8.0-beta1.
The MBean kafka.cluster.Partition shows an UnderReplicated status which is wrong.
Let's take a simple example :
- one topic named topictest
- replication factor = 2
- 3 nodes
Output of kafka-list-topic.sh command :
topic: topictest partition: 0 leader: 2 replicas: 3,2 isr: 2,3
topic: topictest partition: 1 leader: 1 replicas: 1,3 isr: 1,3
topic: topictest partition: 2 leader: 1 replicas: 2,1 isr: 1,2
topic: topictest partition: 3 leader: 1 replicas: 3,1 isr: 1,3
topic: topictest partition: 4 leader: 1 replicas: 1,2 isr: 1,2
topic: topictest partition: 5 leader: 2 replicas: 2,3 isr: 2,3
topic: topictest partition: 6 leader: 2 replicas: 3,2 isr: 2,3
topic: topictest partition: 7 leader: 1 replicas: 1,3 isr: 1,3
So everything is ok, each partition have one follower and the ISR size is 2.
Node 1 which is leader of partition 1 :
MBean "kafka.cluster":type="Partition",name="acorreler-1-UnderReplicated" = 0
Node 3 which if a follower of partition 1 :
"kafka.cluster":type="Partition",name="acorreler-1-UnderReplicated" = 1
On each node, the MBean "kafka.server":type="ReplicaManager",name="UnderReplicatedPartitions" reports 0 which is correct.
So it seems that the followers of a partition believe that their partitions replicates are under replicated.