David Smiley created SOLR-18350:
-----------------------------------

             Summary: Many callers of 
org.apache.solr.core.SolrCore#getLatestSchema should use alternatives
                 Key: SOLR-18350
                 URL: https://issues.apache.org/jira/browse/SOLR-18350
             Project: Solr
          Issue Type: Bug
            Reporter: David Smiley


SolrCore.getLatestSchema can be updated at any time if a schema mutation 
happens.  On the other hand, the SolrQueryRequest has a cached/stable value.  A 
SolrIndexSearcher also has a cached/stable value.  Code that needs the schema 
that _already_ has access to either of those in scope should use them to get 
the schema, *not* via the core.  The javadocs of {{SolrCore.getLatestSchema}} 
should advise about this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to