You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2015/12/21 15:35:46 UTC
[jira] [Commented] (SOLR-8450) Internal HttpClient used in SolrJ is
retries requests by default
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org