Ryan Josal created SOLR-7726:
--------------------------------

             Summary: CodecFactory plugins are double informed of SolrCore
                 Key: SOLR-7726
                 URL: https://issues.apache.org/jira/browse/SOLR-7726
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.2.1, 5.0, 4.10
            Reporter: Ryan Josal
            Priority: Minor


During the SolrCore#initCodec initialization phase, it initializes the the 
CodecFactory by using ResourceLoader#newInstance, which will call 
inform(SolrCore), and then a few lines later it calls inform again.  The 
SchemaCodecFactory, for example, does not break due to this because it has no 
effect to inform it multiple times.  But any extensions or other CodecFactories 
may need to work around this by checking for a second inform call to prevent 
errors or just from running potentially complex init code twice.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to