-
Notifications
You must be signed in to change notification settings - Fork 162
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
Argument Error :erlang.hd([]) on Elixir 1.8.1 #346
Comments
Ouch. A few questions: Does this take down the application? I'll see if I can replicate this and figure out a fix. |
App continues to run, error is logged periodically (maybe every 10s)
No, Heroku assigns a prefix that we must use on all topic names (e.g.
Both are hosted within Heroku. I'll see if I can measure latency. Interestingly, this error is logged repeated for the certain partition+topic combinations. I'd expect random partition+topic combinations if latency was the issue b/c it is usually random. |
Errors are confined to 2 out of 8 brokers. Every partition on these brokers is affected. Unable to measure latency, ping blocked. Any suggestions for debugging? |
how many partitions do you have? |
1-8 partitions depending on topic |
I'm wondering if having fewer partitions than brokers is what causes it. |
Unfortunately #351 did not solve this issue for us. I appreciate the PR though @ukrbublik! |
Continue to see this occasionally
|
So we just had the same problem while using kafka_ex with the managed kafka service from confluent. It seems that they are enabling quotas, when you exceed the quota it will return an empty response with a throttling time. Right now an empty result makes kafka_ex crash. To fix it we can change the code here:
|
@adrienmo That seems like a perfectly reasonable fix - feel free to open a PR with that and I can get it merged. |
@joshuawscott Would this PR be based on master or on the tag 0.10.0 ? |
@adrienmo Against master, please. If you have a moment could you check |
After upgrading Elixir 1.7 to 1.8 we see this error from Consumer Groups:
kafka_ex:
0.10.1
Kafka: Heroku Kafak Add-on, common runtime, multi-tenant plan, Kafka version
2.0.1
Elixir:
1.8.1
, erlang21.3.3
2.1.1
1.7.4
fetch/2
, the firsthd/1
call fails because the response from the broker contains no topics, e.g. innetwork_request/3
we see<<0, 0, 6, 190, 0, 0, 0, 0>>
The text was updated successfully, but these errors were encountered: