[
https://issues.apache.org/jira/browse/KAFKA-21592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alieh Saeedi updated KAFKA-21592:
---------------------------------
Description:
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).
was:
1. Lag is misleading for partitions with no committed offset: it shows log-end
minus log-start instead of -.
2. The default view shows only lag, not current and log-end offsets.
3. Offset rows have no member, process or client-id columns.
4. Offset rows aren't sorted.
5. There's no "group is rebalancing" warning and no explanation of NotReady.
> 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
> 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)