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

Kafka broker leaks metric when partition leader moves to another node.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.4.0
    • Component/s: metrics
    • Labels:
      None

      Description

      When a partition leader moves from one node to another due to an imbalance in leader.imbalance.per.broker.percentage, the old leader broker still emits the static metric value.

      Steps to reproduce:
      1. Create a cluster with 3 nodes.
      2. Create a topic with 2 partitions and RF=3
      3. Generate some data using the console producer.
      4. Move any one of the partition from one node to another using reassign-partitions and preferred-replica-election script.
      5. Generate some data using the console producer.
      6. Now all the 3 nodes emit bytesIn, bytesOut and MessagesIn for that topic.

      Is it the expected behavior?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tuvtran Tu Tran
                Reporter:
                ckamal Kamal Chandraprakash
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: