You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2013/10/08 18:14:42 UTC

[jira] [Closed] (KAFKA-1069) MBean kafka.cluster.Partition report wrong UnderReplicated status

     [ https://issues.apache.org/jira/browse/KAFKA-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Rao closed KAFKA-1069.
--------------------------


> 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
>            Reporter: Vladislav Pernin
>            Assignee: Jun Rao
>             Fix For: 0.8
>
>         Attachments: KAFKA-1069.patch
>
>
> 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)