VinceMu opened a new pull request #8666: URL: https://github.com/apache/kafka/pull/8666
Used the [previous PR ](https://github.com/apache/kafka/pull/8096) made by vetler as a starting point. Updated the printState() method in ConsumerGroup command to only print the header once when the following options are set `--describe --state --all-groups`. Modified testDescribeAllExistingGroups test in DescribeConsumerGroupTest so that we take into account the case where we only print the header once. In this case number of lines is equal to the length of DescribeTypes + 1. ### Committer Checklist (excluded from commit message) - [x] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org