dongnuo123 opened a new pull request, #16309:
URL: https://github.com/apache/kafka/pull/16309

   In `GroupMetadataManager#toTopicPartitions`, we generate a list of 
`ConsumerGroupHeartbeatRequestData.TopicPartitions` from the input deserialized 
subscription. Currently the input subscription is 
`ConsumerPartitionAssignor.Subscription`, where the topic partitions are stored 
as (topic-partition) pairs, whereas in 
`ConsumerGroupHeartbeatRequestData.TopicPartitions`, we need the topic 
partitions to be stored as (topic-partition list) pairs.
   
   `ConsumerProtocolSubscription` is an intermediate data structure in the 
deserialization where the topic partitions are stored as (topic-partition list) 
pairs. This pr uses `ConsumerProtocolSubscription` instead as the input 
subscription to make `toTopicPartitions` more efficient. 
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to