Closed alok87 closed 1 year ago
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. Please check if the main branch has already resolved the issue since it was raised. If you believe the issue is still valid and you would like input from the maintainers then please comment to ask for it to be reviewed.
Available in v1.30.0 and newer since https://github.com/IBM/sarama/pull/2006 merged
Problem Description
Explaining the problem with an example:
ConsumerGroupA
hastopicA
, and after few days we move thetopicA
toConsumerGroupB
due to some use case. Since the retention is infinite for this use cases theConsumerGroupA
for topicA stays active. The lag dashboards keep showing the lag for this dead topic group.Since other topics are still using
ConsumerGroupA
we cannot delete the ConsumerGroupA. We just want to delete the topicA fromConsumerGroupA
.Problems:
Based on this stackoverflow answer, Kafka 2.4.0+ has support to delete individual consumer group id offsets from a topic which should solve this problem.
KAFKA KIP for --delete-offset This has a great detail about this problem. https://cwiki.apache.org/confluence/display/KAFKA/KIP-496%3A+Administrative+API+to+delete+consumer+offsets
Support request
Is it possible to add support for
--delete-offsets
in Sarama?