Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

MarkPartitionOffset has no effect #73

Closed
lkzz opened this issue Aug 30, 2016 · 3 comments
Closed

MarkPartitionOffset has no effect #73

lkzz opened this issue Aug 30, 2016 · 3 comments

Comments

@lkzz
Copy link

lkzz commented Aug 30, 2016

Hi @bsm
In my program ,we want read messages on partition0 from the position:offset0,but there is no effect below:
MarkPartitionOffset(my_test_topic,partition0,offset0,"")

Or is there a way to achieve such requirements?

Looking forward to your reply,thanks.

@flisky
Copy link

flisky commented Sep 12, 2016

There are cmLoop to commit offsets periodically. Or you can call CommitOffsets directly.

@lkzz
Copy link
Author

lkzz commented Sep 12, 2016

In fact, the partition consumer is already running,when you commit an old offset,the partition will not read from that offset position only if the partition consumer recreated.

@dim
Copy link
Member

dim commented Nov 2, 2016

There is no sensible way to "rewind" to a previous offset in sarama-cluster. Given your requirements, I would probably use Sarama directly.

@dim dim closed this as completed Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants