You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2024/05/16 14:41:00 UTC

[jira] [Commented] (KAFKA-16786) New consumer subscribe should not require the deprecated partition.assignment.strategy

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

Lianet Magrans commented on KAFKA-16786:
----------------------------------------

Hey [~phuctran] , I noticed this issue while reviewing one of your PRs, where you had to provide the deprecated assignor to the new consumer. You suffered from this bug :) so if you have bandwidth I think it would be a good simple one for you to take. 

> 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
>
> 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)