-
Notifications
You must be signed in to change notification settings - Fork 276
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
Backport avro canonicalizer #4278
Backport avro canonicalizer #4278
Conversation
Thank you for creating a pull request! Pinging @jsenko to respond or triage. |
@@ -29,26 +30,27 @@ | |||
@ApplicationScoped | |||
public class KafkaSqlUpgrader { |
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.
Realizing that this probably contributes to slow startup times for kafkasql, eh? Perhaps for 3.0 we should consider excluding hashes and similar from the Kafka messages and generate them during message consumption. I'm not sure if that's feasible or not, but it would mean we wouldn't need to run these upgraders.
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.
Note: this has nothing to do with your PR, just a thought I had while reviewing. :)
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
Seems the kafkasql upgrade test timed out. |
9cad26b
to
aa202c3
Compare
Back to this. Yes, there was an actual bug in the upgrader causing it. This is mostly done, now I have to create an isolated test for the AvroCanonicalizerUpgrader and it will be good to go. |
c9fdefe
to
42d1816
Compare
03c6a3f
to
b3ceb8d
Compare
b3ceb8d
to
11e2587
Compare
11e2587
to
68f3726
Compare
This is backporting the original PR #300 to 2.5.x. During the testing, I discovered a bug, the new canonicalizer was not properly handling Avro schemas with nested records. I have addressed this problem here.
Creating in draft since I still have to write a specific test for it (The existing ones also validate this scenario, but I want a specific one just for it).
cc @AndreaScarselli