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

Alieh Saeedi updated KAFKA-21591:
---------------------------------
    Component/s: streams

> kafka-streams-groups --describe --offsets prints nothing for an Empty streams 
> group
> -----------------------------------------------------------------------------------
>
>                 Key: KAFKA-21591
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21591
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Alieh Saeedi
>            Priority: Minor
>
> For a streams group in the Empty state, kafka-streams-groups.sh --describe 
> --group <g> --offsets prints no output and exits with code 0, even though the 
> group still has committed offsets.
> The cause is that StreamsGroupCommand#getOffsets collects partitions only 
> from live members' active-task assignments, and printOffsets only runs when 
> the group has more than 0 members, so even the "has no active members" 
> message never prints.
> kafka-consumer-groups.sh --describe shows committed offsets for Empty groups, 
> so the streams tool behaves differently.
> Fix: when the group has no members, read the partitions from the group's 
> committed offsets for its source and repartition topics, print them with 
> their lag, and print the "no active members" notice to stderr.
> Current workaround: --reset-offsets --all-input-topics --to-current --dry-run 
> --export.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to