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
Deadlock in AnalysisSPILoader [LUCENE-10665] #11701
Comments
Hi, A workaround was implemented for Codecs and other components in Lucene core, but not yet for analysis components: This must be done in the three base classes in same way. Actually as there is no "default analyzer" the extra checks can be ommitted. It is just important to move the static field into a separate class outside of analysis class hierarchy. I will tkae care of this issue. In which verison did you see this? We may backport it to 8.x series but I would fix the issue for versions 9.x first. |
…nitialization. This closes apache#11701
PR (main branch): #11718 |
9.1.0 Thanks for fixing. It works now! |
Thanks for feedback, well appreciated. |
Loading different TokenFilter/Tokenizer/CharFilter from different threads is causing deadlock. To reproduce use the below code:
Took the thread dump, and found that thread1 gets stuck while calling ensureClassInitialized(LowerCaseFilterFactory) possibly because thread2 is holding some lock on the same class.
Migrated from LUCENE-10665 by Jasir KT
The text was updated successfully, but these errors were encountered: