[
https://issues.apache.org/jira/browse/SOLR-8450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066500#comment-15066500
]
Mark Miller commented on SOLR-8450:
-----------------------------------
I guess we should audit all the internal HttpClients created in Solr clients.
We probably want what we normally use:
{code}
// if the request is not fully sent, we retry
// streaming updates are not a problem, because they are not retryable
httpClient.setHttpRequestRetryHandler(new
DefaultHttpRequestRetryHandler(){
@Override
protected boolean handleAsIdempotent(final HttpRequest request) {
return false; // we can't tell if a Solr request is idempotent
}
});
{code}
Except it is not so simples. For read requests, we would like to retry and it's
just update requests we want to limit things.
> Internal HttpClient used in SolrJ is retries requests by default
> ----------------------------------------------------------------
>
> Key: SOLR-8450
> URL: https://issues.apache.org/jira/browse/SOLR-8450
> Project: Solr
> Issue Type: Bug
> Components: clients - java, SolrJ
> Reporter: Shalin Shekhar Mangar
> Fix For: 5.5, Trunk
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]