Skip to content
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

Closed
wants to merge 8 commits into from

Conversation

sigram
Copy link
Contributor

@sigram sigram commented May 5, 2020

See Jira for more details.

sigram added 2 commits May 5, 2020 19:13
…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.
static ModelCache modelCache = null;
static ConcurrentMap objectCache = new ConcurrentHashMap();
private ModelCache modelCache = null;
private ConcurrentMap objectCache = new ConcurrentHashMap();
Copy link
Contributor

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;

/**
Copy link
Contributor

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.

Copy link
Contributor

@dsmiley dsmiley left a 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

@sigram sigram closed this Aug 13, 2020
@asfgit asfgit deleted the jira/solr-14423 branch August 13, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants