Messages dropped when receiver adapter is temporarily down #1494
Comments
@slinkydeveloper may have an idea alredy |
When you recreate the source, do you always set up the same consumer group? |
yes, same consumer group. Infact the kafkasource is not deleted, just the adapter pods are bounced. |
Ok, can you try to reproduce the issue and while you're reproducing the issue, consume the topic where the consumer group offset is being written? I wonder if, for some reason, we start from the wrong offset (the newest and not the one on the topic) or something wrong is being written in the offset topic. |
Not sure if i did this correctly messages from the actual topic. I posted from numbers 1 to 50, you can see numbers missing from 25-38 and 40-44, thats when i bounced the adapter pod
consumer offset topic details
|
@slinkydeveloper as you can see above current offset is always empty. According to this issue, we have to upgrade to sarama 1.27.0 and do Kindly review and let me know your thoughts so I can send a PR for this. I tested the above changes and it seems to work fine. |
Let me try to bump the sarama version @itsmurugappan |
It seems like we're already on v1.27: https://github.com/knative/eventing-contrib/blob/master/go.mod#L6 so do you still see this problem with master of this repo? |
This was updated by #1510 |
yay!, with the update, messages are not dropped when receiver adapter crashes. Thank you.
|
TBH i prefer to leave the actual sarama configuration, committing on every single message is expensive. I guess that sarama commits offsets at a predefined interval or at predefined batch size |
Since on master this seems to be fixed, I close this issue as solved. @itsmurugappan please let me know if you need something else |
makes sense , thank you @slinkydeveloper |
Describe the bug
Messages are dropped when receiver adapter is temporarily down.
Expected behavior
messages should not be dropped when receiver adapter is offline
To Reproduce
Create Kafka source, produce messages in a loop. Simulate a temporary failure to bounce the receiver adapter, you would notice that some messages are dropped.
Knative release version
0.16
The text was updated successfully, but these errors were encountered: