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

MarkingFunctionsFactory.createMarkingFunctions() should not be called as a static initializer #2288

Open
billoley opened this issue Feb 28, 2024 · 0 comments

Comments

@billoley
Copy link
Collaborator

MarkingFunctionsFactory.createMarkingFunctions() ocassionally fails and returns a null. One of the reasons is a VFS / HDFS error. If the failure (null) is cached in a static member of a classs, then that JVM will always have that null value and must be restarted.

Instead, we should call MarkingFunctionsFactory.createMarkingFunctions() when we want the markingFunctions since MarkingFunctionsFactory caches that object in an instance member anyway.

billoley added a commit that referenced this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant