You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Kamal Chandraprakash (Jira)" <ji...@apache.org> on 2025/02/03 17:20:00 UTC

[jira] [Created] (KAFKA-18722) Remove the unreferenced methods from TopicBasedRemoteLogMetadataManager

Kamal Chandraprakash created KAFKA-18722:
--------------------------------------------

             Summary: Remove the unreferenced methods from TopicBasedRemoteLogMetadataManager
                 Key: KAFKA-18722
                 URL: https://issues.apache.org/jira/browse/KAFKA-18722
             Project: Kafka
          Issue Type: Task
            Reporter: Kamal Chandraprakash


The below methods are unused in TopicBasedRemoteLogMetadataManager, previously they were used in tests and tests have been removed: 


{noformat}
    public int metadataPartition(TopicIdPartition topicIdPartition) {
        return rlmTopicPartitioner.metadataPartition(topicIdPartition);
    }

    // Visible For Testing
    public Optional<Long> readOffsetForPartition(int metadataPartition) {
        return consumerManager.readOffsetForPartition(metadataPartition);
    } {noformat}


See this comment: https://github.com/apache/kafka/pull/18787#pullrequestreview-2590172815



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