Skip to content

AVRO-3731 [java/gradle-plugin] retry on any schema parse failure #3384

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

Open
wants to merge 1 commit into
base: avro-3731-gradle-avro-plugin
Choose a base branch
from

Conversation

steven-aerts
Copy link
Contributor

With the introduction of the new SchemaParser in 1.12 the variety of errors which can be thrown when an unresolved type is found increased significantly.
In the past unresolved type errors were tracked with a brittle regexp. In the newly proposed logic we propose to retry failed parse steps on any AvroRuntimeException. So this works for all past and future avro library versions.

@frevib this is a small proposal for an update on #3305 so the gradle plugin support 1.12 and others.
Let me know what you think, and if I can help you improving it somehow.

Verifying this change

This change is already covered by existing tests, such as (please describe tests).

(or)

This change can be verified as follows:

  • run SchemaResolverSpec.groovy
  • And manually verified on internal corpus.

Documentation

  • Does this pull request introduce a new feature? (no)

@github-actions github-actions bot added the Java Pull Requests for Java binding label May 20, 2025
With the introduction of the new SchemaParser in 1.12 the variety of
errors which can be thrown when an unresolved type is found increased
significantly.
In the past unresolved type errors were tracked with a brittle regexp.
In the newly proposed logic we propose to retry failed parse steps on
any AvroRuntimeException.  So this works for all past and future avro
library versions.
@steven-aerts steven-aerts force-pushed the avro-3731-gradle-avro-plugin branch from 7fd07dd to 0e2f6a8 Compare May 21, 2025 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Pull Requests for Java binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant