[
https://issues.apache.org/jira/browse/KAFKA-21672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias J. Sax updated KAFKA-21672:
------------------------------------
Description:
Currently, {{group.streams.assignors}} rejects a custom {{TaskAssignor}} whose
{{name()}} is the name of a built-in assignor (e.g. {{{}sticky{}}}).
KAFKA-20843 settled this for {{{}group.consumer.assignors{}}}: a custom
assignor may use the name of a built-in assignor, and the config is rejected
only when two configured assignors resolve to the same name.
{{group.streams.assignors}} should behave the same
way.
Proposed change in {{{}GroupCoordinatorConfig#streamsGroupAssignors{}}}:
* Remove the reserved-name check. A custom assignor that is configured by its
class name may use the name of a built-in assignor, and it is then the assignor
used for that name.
* Keep the duplicate-name check. Two configured assignors that resolve to the
same name (e.g. {{sticky,com.example.MySticky}} where {{MySticky}} is named
{{{}sticky{}}}) still fail at startup.
was:
Currently, {{group.streams.assignors}} rejects a custom {{TaskAssignor}} whose
{{name()}} is the name of a built-in assignor (e.g.
{{{}sticky{}}}). KAFKA-20843 settled this for
{{{}group.consumer.assignors{}}}: a custom assignor may use the name of a
built-in assignor, and the config is rejected only when two configured
assignors resolve to the same name. {{group.streams.assignors}} should behave
the same
way.
Proposed change in {{{}GroupCoordinatorConfig#streamsGroupAssignors{}}}:
* Remove the reserved-name check. A custom assignor that is configured by its
class name may use the name of a built-in assignor, and it is then the assignor
used for that name.
* Keep the duplicate-name check. Two configured assignors that resolve to the
same name (e.g. {{sticky,com.example.MySticky}} where {{MySticky}} is named
{{{}sticky{}}}) still fail at startup.
> Allow customized streams group assignors to override built-in assignor names
> -----------------------------------------------------------------------------
>
> Key: KAFKA-21672
> URL: https://issues.apache.org/jira/browse/KAFKA-21672
> Project: Kafka
> Issue Type: Bug
> Components: group-coordinator, streams
> Reporter: Ziyun Fu
> Assignee: Ziyun Fu
> Priority: Minor
>
> Currently, {{group.streams.assignors}} rejects a custom {{TaskAssignor}}
> whose {{name()}} is the name of a built-in assignor (e.g. {{{}sticky{}}}).
> KAFKA-20843 settled this for {{{}group.consumer.assignors{}}}: a custom
> assignor may use the name of a built-in assignor, and the config is rejected
> only when two configured assignors resolve to the same name.
> {{group.streams.assignors}} should behave the same
> way.
> Proposed change in {{{}GroupCoordinatorConfig#streamsGroupAssignors{}}}:
>
> * Remove the reserved-name check. A custom assignor that is configured by
> its class name may use the name of a built-in assignor, and it is then the
> assignor used for that name.
>
> * Keep the duplicate-name check. Two configured assignors that resolve to
> the same name (e.g. {{sticky,com.example.MySticky}} where {{MySticky}} is
> named {{{}sticky{}}}) still fail at startup.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)