You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Jasir KT (Jira)" <ji...@apache.org> on 2022/07/28 10:38:00 UTC
[jira] [Created] (LUCENE-10665) Deadlock in AnalysisSPILoader
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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org