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

generate unique new SpecificData for every generated class for MODEL$ #299

Open
radai-rosenblatt opened this issue Mar 18, 2022 · 0 comments
Labels
bug Something isn't working helper related to the compatibility helper

Comments

@radai-rosenblatt
Copy link
Contributor

we currently generate

MODEL$ = SpecificData.get();

while vanilla (modern) avro generates

MODEL$ = new SpecificData();

but under 1.11.0 this can cause deadlocks over access to classcache. upstream avro might have fixed this in https://issues.apache.org/jira/browse/AVRO-3243 but we should move to unique MODEL$s if possible.

this would mean a helper method to create a new SpecificData if possibe given avro runtime version

@radai-rosenblatt radai-rosenblatt added bug Something isn't working helper related to the compatibility helper labels Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working helper related to the compatibility helper
Projects
None yet
Development

No branches or pull requests

1 participant