[ https://issues.apache.org/jira/browse/KAFKA-21594 ]
Moemen Mahmoud deleted comment on KAFKA-21594:
----------------------------------------
was (Author: JIRAUSER315491):
Hi [~alisa23]
I am interested in working on this issue and have started investigating the
problem. I will work on a fix and the necessary tests.
I will share a PR once I have a solution ready.
> 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: Daniil Lykov
> 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)