-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
KIP-74 / KAFKA-2063: max_partition_fetch_bytes should now be a soft limit #1232
Comments
I'm also a little confused on this one because 9c19ea7#diff-835562f30f853295e2dbc151829426f7R69 which implemented part of KIP-74 specifically documents So I'm not sure what level of fix is needed here, but I think it's more than just updating the docs for @tvoinarovskyi I know it's been a few months since you worked on this, but do you remember any other pertinent information? |
Not much work needed to support it, as far as I remember. It's a broker change, it just stopped returning partial messages for Fetch of V3 and higher. We can change the error to critical on consumption if we don't make progress, as it should never happen now. (java raises a raw KafkaError for v3+ case of API call instead of RecordTooLargeError). |
Gotcha, I didn't realize the broker behavior changed. So we can't delete
It was the opposite. I assumed you'd have to touch the code for |
Yup
Yea, my miss there, I implemented that change, did not fully understand that both options changed behaviour there. Also there's a strange test (I wrote it %) ), that @dpkp had issues with, that covers this case:
|
I noticed that the official Kafka consumer config docs for the
max_partition_fetch_bytes
param now specify that it's a soft limit so that the consumer can make progress: https://kafka.apache.org/documentation/#newconsumerconfigsIt looks like the change happened as part of KIP-74 / KAFKA-2063 / actual implementation, which happened in Kafka 0.10.1.
Here's some of the relevant code in
kafka-python
that will need to be updated:kafka-python/kafka/consumer/fetcher.py
Lines 83 to 87 in fc9da05
kafka-python/kafka/consumer/fetcher.py
Lines 328 to 347 in fc9da05
This was further amended in Kafka 0.11 as part of KAFKA-5032 which relates to the new V2 message format which @tvoinarovskyi is working on in #1185.
The text was updated successfully, but these errors were encountered: