[ 
https://issues.apache.org/jira/browse/KAFKA-21594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alieh Saeedi updated KAFKA-21594:
---------------------------------
    Description: 
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).

  was:
1. --input-topic fails unless every partition already has a committed offset. 
That blocks added partitions, partial commits, and pre-loading a new 
application.id.
2. It then exits 0 even though nothing was reset.
3. The help text says --execute deletes all internal topics, but they're only 
deleted with --delete-all-internal-topics or --delete-internal-topic.


> 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
>            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)

Reply via email to