Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete consumer group offset #101

Conversation

faillefer
Copy link
Contributor

@faillefer faillefer commented Sep 12, 2021

Description

Kafka 2.4.0 introduced a new api to delete consumer offsets ( KIP-496: Administrative API to delete consumer offsets )
The API has been implemeted in sarama (IBM/sarama#2006).

This PR add support for this operation in kafkactl through a new command delete consumer-group-offset.
The expected usage is :

Usage:
  kafkactl delete consumer-group-offset CONSUMER-GROUP --topic=TOPIC --partition=PARTITION [flags]

Aliases:
  consumer-group-offset, cgo, offset

Flags:
  -h, --help              help for consumer-group-offset
  -p, --partition int32   delete offset for this partition. -1 stands for all partitions (default -1)
  -t, --topic string      delete offset for this topic

topic flag is required.

This MR requires a update of sarama version to work.

Fixes #88

Type of change

  • New feature (non-breaking change which adds functionality)

Documentation

  • the change is mentioned in the ## [Unreleased] section of CHANGELOG.md
  • the configuration yaml was changed and the example config in README.md was updated
  • a usage example was added to README.md

@d-rk
Copy link
Collaborator

d-rk commented Oct 1, 2021

@faillefer I tested it with sarama 1.30.0 and it worked fine.
I locally rebased, updated sarama and merged into master. So it is already merged, but not showing up in this PR.
I will just close it.

Thanks again for the contribution!

@d-rk d-rk closed this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove topic from consumer group
2 participants