New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-14423: Use SolrClientCache instance managed by CoreContainer #1486
Conversation
…reContainer as much as possible (there are a few places in streaming and sql client classes that can't use it). This also adds a general-purpose ObjectCache to CoreContainer.
solr/core/src/java/org/apache/solr/handler/sql/CalciteSolrDriver.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/handler/sql/CalciteSolrDriver.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/metrics/reporters/solr/SolrReporter.java
Outdated
Show resolved
Hide resolved
static ModelCache modelCache = null; | ||
static ConcurrentMap objectCache = new ConcurrentHashMap(); | ||
private ModelCache modelCache = null; | ||
private ConcurrentMap objectCache = new ConcurrentHashMap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see the removal of nasty statically declared caches!
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does your IDE have a template generating these? I recommend disabling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but the Calcite stuff I didn't look at
See Jira for more details.