Skip to content
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

Merged
merged 15 commits into from
Mar 6, 2024

Conversation

carlesarnal
Copy link
Member

@carlesarnal carlesarnal commented Jan 31, 2024

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

@apicurio-bot
Copy link

apicurio-bot bot commented Jan 31, 2024

Thank you for creating a pull request!

Pinging @jsenko to respond or triage.

@@ -29,26 +30,27 @@
@ApplicationScoped
public class KafkaSqlUpgrader {
Copy link
Member

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.

Copy link
Member

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. :)

Copy link
Member

@EricWittmann EricWittmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@EricWittmann
Copy link
Member

Seems the kafkasql upgrade test timed out.

@carlesarnal carlesarnal force-pushed the backport-avro-canonicalizer branch from 9cad26b to aa202c3 Compare February 20, 2024 08:01
@carlesarnal
Copy link
Member Author

carlesarnal commented Feb 20, 2024

Seems the kafkasql upgrade test timed out.

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.

@carlesarnal carlesarnal force-pushed the backport-avro-canonicalizer branch 2 times, most recently from c9fdefe to 42d1816 Compare February 21, 2024 11:39
@carlesarnal carlesarnal requested a review from jsenko February 21, 2024 12:04
@carlesarnal carlesarnal marked this pull request as ready for review February 21, 2024 12:04
@carlesarnal carlesarnal force-pushed the backport-avro-canonicalizer branch 4 times, most recently from 03c6a3f to b3ceb8d Compare February 22, 2024 12:54
@carlesarnal carlesarnal force-pushed the backport-avro-canonicalizer branch from b3ceb8d to 11e2587 Compare March 5, 2024 07:48
@carlesarnal carlesarnal force-pushed the backport-avro-canonicalizer branch from 11e2587 to 68f3726 Compare March 5, 2024 08:04
@carlesarnal carlesarnal merged commit 6d7388c into Apicurio:2.5.x Mar 6, 2024
15 checks passed
@carlesarnal carlesarnal deleted the backport-avro-canonicalizer branch March 6, 2024 09:54
@carlesarnal carlesarnal linked an issue Mar 11, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Avro canonicalizer
3 participants