Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partition.assignment.strategy must accept an array of values #76

Open
MacPower opened this issue Mar 9, 2021 · 0 comments
Open

partition.assignment.strategy must accept an array of values #76

MacPower opened this issue Mar 9, 2021 · 0 comments

Comments

@MacPower
Copy link

MacPower commented Mar 9, 2021

Hi,

The kafka input plugin must accept an array of values for the partition.assignment.strategy. As describe in the documentation the assignment strategy is a list and can accept multiple values.

This property accepts a comma-separated list of strategies. For example, it allows to update a group of consumers by specifying a new strategy while temporarily keeping the previous one. Part of the Rebalance Protocol the broker coordinator will choose the protocol which is supported by all members.

By default the strategy is class org.apache.kafka.clients.consumer.RangeAssignor if I want to change to org.apache.kafka.clients.consumer.RoundRobinAssignor I need to stop consuming from my consumer group (so stopping all my instances) , change the strategy and then restart consuming from the topic with the new strategy.

If we specify a new strategy with an active consumer group, this result in the following error:

Error: The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list.
  Exception: Java::OrgApacheKafkaCommonErrors::InconsistentGroupProtocolException

Wich is totally normal.

Could this be implemented ?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant