-
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
Fix byte size estimation with kafka producer #1393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me at first glance. Be good to have @tvoinarovskyi double-check as he wrote this originally in fbea5f0 just in case he did this on purpose for some reason...
Wow, sorry about that. |
Will take another look in the evening, but seems like a legit error ) |
Also, we might also want to change the function signature of |
Thanks for the fast update @blakeembrey.
Probably all 5 of these usages should get updated for clarity: https://github.com/dpkp/kafka-python/search?utf8=%E2%9C%93&q=estimate_size_in_bytes&type= Sorry to nitpick here, it's just these functions are somewhat self-documenting, and since you're already knee-deep into it, might as well finish making it consistent all the way through. |
ef58cdb
to
3a38104
Compare
@jeffwidman I've updated more of the places where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blakeembrey thanks! Looks like tests are failing?
I’ll have to look into it next week. |
Please, leave the kafka/record part intact. It's the same naming as in Java. |
If that's true, then probably should just revert this back to the original fix of c8945c0 and drop the other commits. I'm fine with that, and sorry for the runaround @blakeembrey. |
3a38104
to
c8945c0
Compare
@jeffwidman No problem, just deleted the extra commits. |
gj |
Unfortunately 1.4.x broke with this because it's accidentally sending the raw key and value instead of serialised byte strings.