[ 
https://issues.apache.org/jira/browse/KAFKA-21592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149949#comment-18149949
 ] 

Moemen Mahmoud commented on KAFKA-21592:
----------------------------------------

Hi [~alisa23] 

I am interested in working on this issue and have started investigating the 
current behavior of the {{--describe --offsets}} command.

I will investigate the root cause, work on a fix, and add the necessary tests.

I will share a pull request once I have a solution ready.

 

> Improve kafka-streams-groups --describe offsets output
> ------------------------------------------------------
>
>                 Key: KAFKA-21592
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21592
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Alieh Saeedi
>            Assignee: Moemen Mahmoud
>            Priority: Minor
>
> For a partition with no committed offset, kafka-streams-groups --describe 
> --offsets reports lag as log-end offset minus log-start offset 
> (StreamsGroupCommand#getOffsets), as if the app had started from the earliest 
> offset. The default view shows only OFFSET-LAG, so "never committed" looks 
> the same as "behind by N".
> Offset rows also have no member, process or client-id columns and are not 
> sorted, and there is no "group is rebalancing" warning or explanation of what 
> the NotReady state means.
> kafka-consumer-groups --describe shows - for current offset and lag when 
> nothing is committed, shows CURRENT-OFFSET and LOG-END-OFFSET by default, 
> lists each partition's owner, and warns when a group is rebalancing.
> Fix: print - for current offset and lag when nothing is committed, show 
> current and log-end offsets by default, add owner columns (- when unowned), 
> sort rows by topic and partition, and print warnings for rebalancing and 
> NotReady groups.
> Found while comparing with kafka-consumer-groups; affects 4.1.0+ (--describe 
> was added in KAFKA-18288).



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

Reply via email to