You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Markus Heiden (JIRA)" <ji...@apache.org> on 2015/07/17 14:26:04 UTC

[jira] [Updated] (SOLR-7803) Classloading deadlock in TrieField

     [ https://issues.apache.org/jira/browse/SOLR-7803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Heiden updated SOLR-7803:
--------------------------------
    Attachment: TrieField.patch

> Classloading deadlock in TrieField
> ----------------------------------
>
>                 Key: SOLR-7803
>                 URL: https://issues.apache.org/jira/browse/SOLR-7803
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.2.1
>         Environment: OSX
>            Reporter: Markus Heiden
>            Priority: Critical
>              Labels: patch
>         Attachments: TrieField.patch
>
>
> When starting a Solr our instance lock up sometimes. We took a thread dump and all thread are trying to load classes via Class.forName() and are stuck in that method. One of these the threads got one step further into the <clinit> of TrieField where it creates an internal static instance of TrieDateField (circular dependency). I don't know why this locks up exactly, but this code smells anyway. So I removed that instance and made the used methods static.
> This does not completely remove the circular dependency, but at least it is no more in <clinit>. For the future someone may extract a util class to remove the circular dependency.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org