Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
5.0
-
CentOS 7
Description
shardHandlerFactory config in solr.xml:
<shardHandlerFactory name="shardHandlerFactory" class="HttpShardHandlerFactory"> <int name="socketTimeout">${socketTimeout:600000}</int> <int name="connTimeout">${connTimeout:60000}</int> <bool name="useRetries">true</bool> <bool name="allowCompression">true</bool> </shardHandlerFactory>
actually useRetries can be set in HttpClient properly, but not use allowCompression paramter
is it means Solr don't support response compression when do Http request ?
here is the source code to parse parameters :
ModifiableSolrParams clientParams = new ModifiableSolrParams(); clientParams.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, maxConnectionsPerHost); clientParams.set(HttpClientUtil.PROP_MAX_CONNECTIONS, maxConnections); clientParams.set(HttpClientUtil.PROP_SO_TIMEOUT, soTimeout); clientParams.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, connectionTimeout); if (!useRetries) { clientParams.set(HttpClientUtil.PROP_USE_RETRY, false); } this.defaultClient = HttpClientUtil.createClient(clientParams); // must come after createClient if (useRetries) { // our default retry handler will never retry on IOException if the request has been sent already, // but for these read only requests we can use the standard DefaultHttpRequestRetryHandler rules ((DefaultHttpClient) this.defaultClient).setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler()); }
can anyone please explain to me ?
we are facing "2048KB upload size exceeds limit" issue, and we don't want to increase the limit for now
<requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048000" formdataUploadLimitInKB="2048" addHttpRequestToContext="false"/>