[
https://issues.apache.org/jira/browse/KAFKA-19435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-19435.
------------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
> Optimize `kafka-consumer-groups.sh` to return the offset info of other
> partitions even when the leader of some partitions are missing
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-19435
> URL: https://issues.apache.org/jira/browse/KAFKA-19435
> Project: Kafka
> Issue Type: Improvement
> Components: admin
> Affects Versions: 4.0.0
> Reporter: kangning.li
> Assignee: kangning.li
> Priority: Minor
> Fix For: 4.2.0
>
>
> When we use the `{{{}kafka-consumer-groups.sh`{}}} script to query the LAG of
> some consumer group, if the leader of the corresponding topic-partition is
> missing, it will directly throw an exception, which may cause the following
> problems:
> # There are 10 partitions in total, but if only 1 partition lacks a leader,
> users will be unable to view the LAG of the other 9 partitions.
> # Throwing an exception directly will subconsciously make users think that
> there is a major failure in the cluster.
>
> Perhaps we can optimize this script to return as much information as possible
> instead of throwing an exception directly.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)