You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "黃竣陽 (Jira)" <ji...@apache.org> on 2024/08/16 13:55:00 UTC
[jira] [Comment Edited] (KAFKA-17338) ConsumerConfig should prevent using partition assignors with CONSUMER group protocol
[ https://issues.apache.org/jira/browse/KAFKA-17338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874262#comment-17874262 ]
黃竣陽 edited comment on KAFKA-17338 at 8/16/24 1:54 PM:
------------------------------------------------------
[~kirktrue], I have a question, the `partition.assignment.strategy` has the default value of `class org.apache.kafka.clients.consumer.RangeAssignor,class org.apache.kafka.clients.consumer.CooperativeStickyAssignor`, thus in this case user should set `partition.assignment.strategy` with empty string to avoid this check? Thanks for your help.
was (Author: JIRAUSER305187):
[~kirktrue], I have a question, the `partition.assignment.strategy` has the default value of `class org.apache.kafka.clients.consumer.RangeAssignor,class org.apache.kafka.clients.consumer.CooperativeStickyAssignor`, thus in this case user should set `partition.assignment.strategy` with empty string to avoid this check?
> ConsumerConfig should prevent using partition assignors with CONSUMER group protocol
> ------------------------------------------------------------------------------------
>
> Key: KAFKA-17338
> URL: https://issues.apache.org/jira/browse/KAFKA-17338
> Project: Kafka
> Issue Type: Task
> Components: clients, config, consumer
> Reporter: Kirk True
> Assignee: Kirk True
> Priority: Critical
> Labels: consumer-threading-refactor, kip-848-client-support
>
> {{ConsumerConfig}} should be updated to include additional validation in {{postProcessParsedConfig()}}—when {{group.protocol}} is set to {{CONSUMER}}, the value for {{partition.assignment.strategy}} must be either null or empty. Otherwise a {{ConfigException}} should be thrown.
> This is somewhat of the inverse case of KAFKA-15773.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)