You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Mickael Maison (Jira)" <ji...@apache.org> on 2023/06/26 15:24:00 UTC

[jira] [Created] (KAFKA-15122) Moving partitions between log dirs leads to kafka.log:type=Log metrics being deleted

Mickael Maison created KAFKA-15122:
--------------------------------------

             Summary: Moving partitions between log dirs leads to kafka.log:type=Log metrics being deleted
                 Key: KAFKA-15122
                 URL: https://issues.apache.org/jira/browse/KAFKA-15122
             Project: Kafka
          Issue Type: Task
    Affects Versions: 3.5.0
            Reporter: Mickael Maison


# Start a broker with 2 log directories
# Create a topic-partition
Metrics with the following names are created: kafka.log:type=Log,name=Size,topic=<TOPIC>,partition=0
# Using kafka-reassign-partitions move that partition to the other log directory
A tag isFuture=true is added to the existing metrics, kafka.log:type=Log,name=Size,topic=<TOPIC>,partition=0,isFuture=true
# 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.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)