-
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
Error on fetching message sets larger than max_bytes #269
Comments
Is this fixed now? we raise a specific error for this case (changed in #268) kafka_ex/lib/kafka_ex/protocol/fetch.ex Line 77 in b0d472b
not sure what else we could do to handle the issue. |
I got same error |
it appears as though the message size is 825MB, which means you need to increase max_bytes to at least that size to be able to consume it. As an aside, I would not recommend using kafka for messages of that size. |
But it would be great if kafka_ex will read big message by chunks (for example 80 times by 10 MB) and then return one message. Also 825MB it is not one big object in kakfa, because the size of one message pushed to kafka in this test env is about 50KB |
@joshuawscott I would argue that it's not, even though logging may be better in some cases. Note that the Kafka broker receiving a
https://kafka.apache.org/protocol#The_Messages_Fetch When this happens, it appears that
Note that this is from version |
The answer at this point is to ensure your max_bytes matches the topic's max_bytes. We treat max_bytes as a requirement in kafka_ex, so if it is lower than the topic's max_bytes, the request will fail. |
See #268 for details and some discussion.
The text was updated successfully, but these errors were encountered: