IBM / sarama

Sarama is a Go library for Apache Kafka.
MIT License
11.38k stars 1.75k forks source link

KIP-396: Add Reset/List Offsets Operations to AdminClient #1669

Open dnwe opened 4 years ago

dnwe commented 4 years ago

Add support for KIP-396 which was added to the Java AdminClient in the Kafka 2.5.0

Resetting the offsets of a consumer group is a relatively common operation. It's usually done to allow an application to reprocess data or otherwise to skip/drop records. Currently (thanks to KIP-122) it can be done using the kafka-consumer-group.sh tool however it would be nice to be able to to it directly with the AdminClient. Applications can more easily depend on the AdminClient API rather than running the ConsumerGroupsCommand class or worse reimplementing the logic. The ability to retrieve committed offsets is already available in the AdminClient and has proved very useful. Additionally KIP-496 is adding the ability to delete committed offsets. This justifies integrating the consumer group reset/alter functionality directly in the AdminClient.

github-actions[bot] commented 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.

dnwe commented 1 year ago

Partially implemented by 3645a34 (ListOffsets), but we still don't currently provide a method in admin.go to alter consumer group offsets (implemented by the Java AdminClient as a series of commit offset requests)

github-actions[bot] commented 9 months 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.