@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            UserTopicIdPartition that = (UserTopicIdPartition) o;
            return topicIdPartition.equals(that.topicIdPartition) && metadataPartition.equals(that.metadataPartition);
        }
UserTopicIdPartition denotes the user topic-partitions for which this broker acts as a leader/follower of.

@param tpId               the unique topic partition identifier
@param metadataPartition  the remote log metadata partition mapped for this user-topic-partition.
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/ConsumerTask.java