[
https://issues.apache.org/jira/browse/KAFKA-16786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846990#comment-17846990
]
Phuc Hong Tran edited comment on KAFKA-16786 at 5/16/24 2:53 PM:
-----------------------------------------------------------------
Sure, I’ll take it
was (Author: JIRAUSER301295):
Sure, @lianetm. I’ll take it
> New consumer subscribe should not require the deprecated
> partition.assignment.strategy
> --------------------------------------------------------------------------------------
>
> Key: KAFKA-16786
> URL: https://issues.apache.org/jira/browse/KAFKA-16786
> Project: Kafka
> Issue Type: Bug
> Components: consumer
> Affects Versions: 3.7.0
> Reporter: Lianet Magrans
> Priority: Major
> Labels: kip-848-client-support
> Fix For: 3.8
>
>
> The partition.assignment.strategy config is deprecated with the new consumer
> group protocol KIP-848. With the new protocol, server side assignors are
> supported for now, defined in the property
> group.remote.assignor, and with default values selected by the broker, so
> it's not even a required property.
> The new AsyncKafkaConsumer supports the new protocol only, but it currently
> throws an IllegalStateException if a call to subscribe is made and the
> deprecated config partition.assignment.strategy is empty (see
> [throwIfNoAssignorsConfigured|https://github.com/apache/kafka/blob/056d232f4e28bf8e67e00f8ed2c103fdb0f3b78e/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java#L1715]).
>
> We should remove the reference to ConsumerPartitionAssignor in the
> AsyncKafkaConsumer, along with it's validation for non-empty on subscribe
> (only use it has)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)