-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
a1ea953 to
da1b60d
Compare
… protocol Signed-off-by: PoAn Yang <[email protected]>
|
Hi @chia7712, could you help me review this when you have time? Thanks. |
Signed-off-by: PoAn Yang <[email protected]>
Signed-off-by: PoAn Yang <[email protected]>
|
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
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)