-
Notifications
You must be signed in to change notification settings - Fork 14.3k
KAFKA-10730: KafkaApis#handleProduceRequest should use auto-generated protocol #18216
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
base: trunk
Are you sure you want to change the base?
Conversation
This added twice as much code as it removed - the benefit doesn't seem to justify the cost. If we want to do this, we should avoid all the extra verbosity. |
Old code only uses single line to represent a response, but new structure use builder pattern, so it takes more lines. Old one:
New one:
|
Right, so why do we want to do this? What's the benefit? |
d3d26aa
to
9388f50
Compare
Hi @ijuma, thanks for the review. The good part is that we eliminate data conversion time. We don't need to convert data from Before (trunk):
After (this branch):
|
17e5fdb
to
3248a96
Compare
37d10f8
to
ae77bd1
Compare
ae77bd1
to
a1ea953
Compare
… protocol Signed-off-by: PoAn Yang <[email protected]>
a1ea953
to
da1b60d
Compare
This is follow-up of KAFKA-9628 the construction of ProduceResponse is able to accept auto-generated protocol data so KafkaApis#handleProduceRequest should apply auto-generated protocol to avoid extra conversion.
Committer Checklist (excluded from commit message)