-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
KAFKA-14425; The Kafka protocol should support nullable structs #12932
Conversation
@cmccabe Could you review this one please? The vote is not closed yet but we have all the votes. |
Thanks for this, @dajac . Can you add a test that the The other test that I really want is a test that a tagged nullable struct will be correctly ignored by code prior to this PR. Unfortunately I don't have a good suggestion for how to do that in junit or ducktape. Can you do some kind of manual test to ensure that this is the case? (Once we have people using tagged nullable structs the ducktape cross-version compatibility tests will serve as a de-facto test of this, but that will come later) |
That makes sense. Added tests.
I did the following. With this PR, I used the following schema and code to serialize a message.
Then, with trunk, I used the following schema and code to validate.
That worked as expected. |
The KIP has been accepted. |
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.
LGTM
…he#12932) This patch adds support for nullable structs in the Kafka protocol as described in KIP-893 - https://cwiki.apache.org/confluence/display/KAFKA/KIP-893%3A+The+Kafka+protocol+should+support+nullable+structs. Reviewers: Colin Patrick McCabe <cmccabe@apache.org>
KIP: https://cwiki.apache.org/confluence/display/KAFKA/KIP-893%3A+The+Kafka+protocol+should+support+nullable+structs
Committer Checklist (excluded from commit message)