Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1069

MBean kafka.cluster.Partition report wrong UnderReplicated status

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              junrao Jun Rao
              Reporter:
              vpernin Vladislav Pernin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: