Lianet Magrans created KAFKA-16786:
--------------------------------------
Summary: 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
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)