You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
So far, this is the only way I can make it work: Wait for a subscription to the topic/partition to be established, and once the partition consumer is launched, I MarkPartitionOffset() with offset-1 and then CommitOffsets(). Is the norm?
And if it is, assume I now want to start from sarama.OffsetOldest or sarama.OffsetNewest - how would I go about doing that? (Besides creating a new consumer in an entirely different consumer group.)
Hey Kostas, there is no API for this in sarama-cluster, which is really all about coordinating consumption of a continuous topic. For lower-level tasks, please take a look at sarama itself, where you can manipulate partition offsets for a consumer group. In case you want to reset them, just commit the offset for each partition with a really short RetentionTime (e.g. 0 or 1, it's in seconds), which means it will be wiped after that time and you can start with a clean sheet. Hope that helps!
Is there an API in this library that allows this?
I'm looking for something that basically taps into sarama's
ConsumePartition()
API and itsoffset
argument.Thank you.
The text was updated successfully, but these errors were encountered: