Vladislav Pernin created KAFKA-1069:
---------------------------------------

             Summary: MBean kafka.cluster.Partition report wrong 
UnderReplicated status
                 Key: KAFKA-1069
                 URL: https://issues.apache.org/jira/browse/KAFKA-1069
             Project: Kafka
          Issue Type: Bug
    Affects Versions: 0.8.1
            Reporter: Vladislav Pernin


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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to