-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AVRO-4071: [java] Allow schema redefinition when equal #3304
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
Conversation
ParseContext.put accept known schemas when strictly identical. Call to this method was made before schema was fully parsed avoiding exact schema redefinition in files. Call ParseContext.put when schema is fully parsed. This has an inpact on the schemas ordering returned by the parser.
|
Hi, any updates on this PR @cutting ? |
|
It took me a while to really understand this PR, and why it changes the parsing behaviour (most notably the order or parse results). I'm also renaming it to match the other reported issue for this. |
|
@opwvhk, can we get a release for this fix, as we are waiting for same due to the bug fixed in this commit. |
|
We're also facing this issue and having a release would be great! 🙏🏽 |
ParseContext.put accept known schemas when strictly identical. Call to this method was made before schema was fully parsed avoiding exact schema redefinition in files. Call ParseContext.put when schema is fully parsed. This has an inpact on the schemas ordering returned by the parser. (cherry picked from commit cea41a4)
ParseContext.put accept known schemas when strictly identical. Call to this method was made before schema was fully parsed avoiding exact schema redefinition in files. Call ParseContext.put when schema is fully parsed. This has an inpact on the schemas ordering returned by the parser.
|
This change breaks compatibility with previous releases. Seeing this StackOverflowError in Pulsar tests: |
|
I filed https://issues.apache.org/jira/browse/AVRO-4209 about the issue. |
|
@opwvhk @RustedBones Do you have a chance to take a look at https://issues.apache.org/jira/browse/AVRO-4209 since this PR caused the regression? |
What is the purpose of the change
ParseContext.put accept known schemas when strictly identical. Call to this method was made before schema was fully parsed avoiding exact schema redefinition in files.
Call ParseContext.put when schema is fully parsed.
This has an inpact on the schemas ordering returned by the parser.
Verifying this change
Tests were adapted by adding a redefinition of the
MyResponseschema in theApplicationEventrecordDocumentation