[ 
https://issues.apache.org/jira/browse/KAFKA-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867192#comment-17867192
 ] 

Ksolves India Limited commented on KAFKA-4998:
----------------------------------------------

As per my understanding, A method named _assign()_ requires a 
Collection<TopicPartition> and returns a List<PartitionInfo>. You're suggesting 
an improvement to streamline the conversion process between these classes.

Could you please provide more details on the proposed implementation for this 
conversion? Also, could you mention the interface name where assigned method 
belongs?

> Add utility to convert between TopicPartition and PartitionInfo
> ---------------------------------------------------------------
>
>                 Key: KAFKA-4998
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4998
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Timo Meijer
>            Priority: Major
>              Labels: Quickfix
>
> A common usecase when working with manual assignments is to fetch information 
> about the topics and partitions, and then do your assignment.
> The interface for fetching the metadata returns a List<PartitionInfo>, but 
> assign requires a Collection<TopicPartition>.
> Converting between this classes is easy, but a bit verbose. Adding a simple 
> conversion to a utility class, or on the classes themselves, would improve 
> the API and user experience.



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

Reply via email to