SOLR-12814: Metrics history causing "HttpParser URI is too large >8192" when many collections

This fixes #461
This commit is contained in:
Jan Høydahl 2018-10-04 18:32:38 +02:00
parent 36c60251f2
commit 5fb384c989
2 changed files with 3 additions and 1 deletions

View File

@ -160,6 +160,8 @@ Bug Fixes
create inconsistencies between replicas of the same shard. min_rf parameter is now deprecated, and even if provided create inconsistencies between replicas of the same shard. min_rf parameter is now deprecated, and even if provided
replicas that don't ack an update from the leader will be marked for recovery. (Tomás Fernández Löbbe) replicas that don't ack an update from the leader will be marked for recovery. (Tomás Fernández Löbbe)
* SOLR-12814: Metrics history causing "HttpParser URI is too large >8192" when many collections (janhoy)
Improvements Improvements
---------------------- ----------------------
* SOLR-12767: Solr now always includes in the response of update requests the achieved replication factor * SOLR-12767: Solr now always includes in the response of update requests the achieved replication factor

View File

@ -333,7 +333,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
throws IOException, SolrServerException { throws IOException, SolrServerException {
String url = zkClientClusterStateProvider.getZkStateReader().getBaseUrlForNodeName(solrNode); String url = zkClientClusterStateProvider.getZkStateReader().getBaseUrlForNodeName(solrNode);
GenericSolrRequest request = new GenericSolrRequest(SolrRequest.METHOD.GET, path, params); GenericSolrRequest request = new GenericSolrRequest(SolrRequest.METHOD.POST, path, params);
try (HttpSolrClient client = new HttpSolrClient.Builder() try (HttpSolrClient client = new HttpSolrClient.Builder()
.withHttpClient(solrClient.getHttpClient()) .withHttpClient(solrClient.getHttpClient())
.withBaseSolrUrl(url) .withBaseSolrUrl(url)