AndrewJSchofield commented on PR #19610: URL: https://github.com/apache/kafka/pull/19610#issuecomment-2844803489
Here's a sample of the output before the change: Success: ``` bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete-offsets --group group1 --topic T1 Request succeed for deleting offsets with topic T1 group group1 TOPIC PARTITION STATUS T1 0 Successful ``` and a failure: ``` bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete-offsets --group group3 --topic T1 Error: 'group3' does not exist. TOPIC PARTITION STATUS T1 0 Error: org.apache.kafka.common.errors.GroupIdNotFoundException: The group id does not exist. ``` Here are some output examples after the change. Successful deletion: ``` bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete-offsets --group group1 --topic T1 Request succeeded for deleting offsets from group group1 with topic T1. TOPIC PARTITION STATUS T1 0 Successful ``` Deletion failed because T1 is subscribed: ``` bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete-offsets --group group1 --topic T1 Error: Encountered some partition-level error, see the follow-up details: TOPIC PARTITION STATUS T1 0 Error: org.apache.kafka.common.errors.GroupSubscribedToTopicException: Deleting offsets of a topic is forbidden while the consumer group is actively subscribed to it. ``` Unknown group ID: ``` bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --delete-offsets --group group3 --topic T1 Error: The group id does not exist. TOPIC PARTITION STATUS T1 0 Error: org.apache.kafka.common.errors.GroupIdNotFoundException: The group id does not exist. ``` -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org