You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jose Armando Garcia Sancio (Jira)" <ji...@apache.org> on 2021/08/17 00:13:00 UTC

[jira] [Created] (KAFKA-13208) Use TopicIdPartition instead of TopicPartition when computing the topic delta

Jose Armando Garcia Sancio created KAFKA-13208:
--------------------------------------------------

             Summary: Use TopicIdPartition instead of TopicPartition when computing the topic delta
                 Key: KAFKA-13208
                 URL: https://issues.apache.org/jira/browse/KAFKA-13208
             Project: Kafka
          Issue Type: Improvement
          Components: kraft, replication
            Reporter: Jose Armando Garcia Sancio
            Assignee: Jose Armando Garcia Sancio


{{TopicPartition}} is used as the key when computing the local changes in {{TopicsDelta}}. The topic id is included in the Map value return by {{localChanges}}. I think that the handling of this code and the corresponding code in {{ReplicaManager}} could be simplified if {{localChanges}} instead returned something like
{code:java}
{
  deletes: Set[TopicIdPartition],
  leaders: Map[TopicIdPartition, PartitionRegistration],
  followers: Map[TopicIdPartition, PartitionRegistration] 
}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)