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

Moving partitions between log dirs leads to kafka.log:type=Log metrics being deleted

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.4.0
    • 3.5.0
    • None
    • None

    Description

      1. Start a broker with 2 log directories
      2. Create a topic-partition
        Metrics with the following names are created: kafka.log:type=Log,name=Size,topic=<TOPIC>,partition=0
      3. Using kafka-reassign-partitions move that partition to the other log directory
        A tag is-future=true is added to the existing metrics, kafka.log:type=Log,name=Size,topic=<TOPIC>,partition=0,is-future=true
      4. Using kafka-reassign-partitions move that partition back to its original log directory
        The metrics are deleted!

      I don't expect the metrics to be renamed during the first reassignment. The metrics should not be deleted during the second reassignment, the topic still exists. Restarting the broker resolves the issue.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mimaison Mickael Maison
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: