Jasir KT created LUCENE-10665:
---------------------------------
Summary: Deadlock in AnalysisSPILoader
Key: LUCENE-10665
URL: https://issues.apache.org/jira/browse/LUCENE-10665
Project: Lucene - Core
Issue Type: Bug
Reporter: Jasir KT
Loading different TokenFilter/Tokenizer/CharFilter from different threads is
causing deadlock. To reproduce use the below code:
public static void main(String[] args) {
Thread thread1 = new Thread(UpperCaseFilterFactory::new);
Thread thread2 = new Thread(LowerCaseFilterFactory::new);
thread1.start();
thread2.start();
}
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]