[
https://issues.apache.org/jira/browse/KAFKA-21594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Moemen Mahmoud reassigned KAFKA-21594:
--------------------------------------
Assignee: Moemen Mahmoud (was: Daniil Lykov)
> Fix kafka-streams-groups --reset-offsets --input-topic and help text
> --------------------------------------------------------------------
>
> Key: KAFKA-21594
> URL: https://issues.apache.org/jira/browse/KAFKA-21594
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Reporter: Alieh Saeedi
> Assignee: Moemen Mahmoud
> Priority: Minor
>
> kafka-streams-groups --reset-offsets --input-topic T only works if every
> partition of T already has a committed offset in the group
> (StreamsGroupCommand#filterExistingGroupTopics). Otherwise it prints "One or
> more topics are not part of the group", resets nothing, and still exits 0.
> This blocks resets after partitions are added to an input topic, when only
> some partitions were committed, and when pre-loading a new application.id by
> topic with --to-earliest or --to-datetime (only --from-file works).
> kafka-consumer-groups --reset-offsets --topic has no such restriction.
> Separately, the --reset-offsets help text says --execute deletes all internal
> topics, but they are only deleted with --delete-all-internal-topics or
> --delete-internal-topic, so users may keep stale changelogs.
> Fix: accept any input topic of the group's topology and reset all its
> partitions, exit non-zero when nothing is reset, and correct the help text.
> Found while comparing with kafka-consumer-groups; affects 4.2.0+
> (reset-offsets was added inĀ KAFKA-19244).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)