mirror of https://github.com/apache/lucene.git
SOLR-13953: Prometheus exporter in SolrCloud mode limited to 100 nodes
This commit is contained in:
parent
34f11c9f57
commit
d189520935
|
@ -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
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue