You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "kangning.li (Jira)" <ji...@apache.org> on 2025/06/25 10:02:00 UTC

[jira] [Created] (KAFKA-19435) Optimize `kafka-consumer-groups.sh` to return the offset info of other partitions even when the leader of some partitions are missing

kangning.li created KAFKA-19435:
-----------------------------------

             Summary: 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


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)