-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brod_topic_subscriber throws away #kafka_fetch_error{} #441
Comments
I've faced same problem. Starting |
Have to admit it's not nice neither Maybe the least we can do is to handle the error message in =================== If you want the offset to be reset in case of
|
Agree auto reset to |
Hi @SerikDM I'll try to send a PR to add a shutdown. |
I encountered an issue where a group subscriber stopped making any progress. These are the logs from the incident, before it went silent:
I replaced most of the pids with
'pid.module.id'
atoms to make the logs more readable.My understanding is that the last message is coming from here:
brod/src/brod_consumer.erl
Lines 609 to 617 in 1c9144b
The
brod_consumer
sent a{self(), #kafka_fetch_error{}}
message to thebrod_topic_subscriber
, but the latter only expects#kafka_message_set{}
-s here:brod/src/brod_topic_subscriber.erl
Lines 298 to 300 in 1c9144b
So the error is thrown away and thus the whole subscriber stops progressing. This looks like a problem to me, but to be honest, I don't know how to handle these errors. Maybe just log the error and crash?
By the way, I don't understand how the consumer got that error either, because it looks like it should have started from the
earliest
offset - which then turns out not to exist? But this happened after some big Kafka hiccup, when the previous 40 minutes was spent receiving coordinator load in progress responses from Kafka and nothing else, so I'm not particularly surprised.The text was updated successfully, but these errors were encountered: