added a set_offset() method to partition_consumer.rb#69
added a set_offset() method to partition_consumer.rb#69bkao wants to merge 1 commit intobpot:masterfrom
Conversation
|
@bkao it may be the case that the message you are trying to fetch is larger than the max_fetch_size. Do you know of anyway to reproduce the issue? I'm hesitant to add the |
|
Nor am i certain that this is the right way to work around the specific @bkao https://github.com/bkao it may be the case that the message you are I'm hesitant to add the #set_offset API because it may be used as a — |
|
I also need to be able to set the offset. Say I fetch messages with offsets 1, 2, and 3. I successfully process 1 and 2 (and I keep track of this fact), but then some error occurs. I need to pick back up at offset 3, but currently that means reestablishing the entire connection, which doesn't seem correct. Or say I'm reading through the messages and I want to replay the previous 10 messages, again it requires me to reestablish the connection just to change the offset. |
When Kafka has a corrupt message poseidon gets stuck attempting to read the same offset ad infinitum. We needed to be able to skip ahead (presumably past a corrupt message or disk corruption) so we could implement logic like this: