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)

Reply via email to