You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "AndrewJSchofield (via GitHub)" <gi...@apache.org> on 2025/05/01 11:28:21 UTC
[PR] MINOR: Improve output for delete-offset of kafka-consumer-groups.sh [kafka]
AndrewJSchofield opened a new pull request, #19610:
URL: https://github.com/apache/kafka/pull/19610
The output from the delete-offsets option of kafka-consumer-groups.sh can be improved. For example, the column widths are excessive which looks untidy, and the error messages from the broker are discarded which means diagnosing why it didn't work is made harder.
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Improve output for delete-offset of kafka-consumer-groups.sh [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: Improve output for delete-offset of kafka-consumer-groups.sh [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield merged PR #19610:
URL: https://github.com/apache/kafka/pull/19610
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org