SOLR-13953: Prometheus exporter in SolrCloud mode limited to 100 nodes

This commit is contained in:
Erick Erickson 2019-12-10 20:19:30 -05:00
parent 34f11c9f57
commit d189520935
2 changed files with 3 additions and 6 deletions

View File

@ -232,6 +232,8 @@ Bug Fixes
* SOLR-13975, SOLR-13896: ConcurrentUpdateSolrClient connection stall prevention. (ab, caomanhdat)
* SOLR-13953: Prometheus exporter in SolrCloud mode limited to 100 nodes (Alex Jablonski via Erick Erickson)
Other Changes
---------------------

View File

@ -27,7 +27,6 @@ import java.util.stream.Collectors;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.RemovalListener;
import org.apache.solr.client.solrj.impl.CloudSolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.common.cloud.DocCollection;
@ -43,11 +42,7 @@ public class SolrCloudScraper extends SolrScraper {
private final CloudSolrClient solrClient;
private final SolrClientFactory solrClientFactory;
private Cache<String, HttpSolrClient> hostClientCache = CacheBuilder.newBuilder()
.maximumSize(100)
.removalListener((RemovalListener<String, HttpSolrClient>)
removalNotification -> IOUtils.closeQuietly(removalNotification.getValue()))
.build();
private Cache<String, HttpSolrClient> hostClientCache = CacheBuilder.newBuilder().build();
public SolrCloudScraper(CloudSolrClient solrClient, Executor executor, SolrClientFactory solrClientFactory) {
super(executor);