[ 
https://issues.apache.org/jira/browse/SOLR-12649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16574673#comment-16574673
 ] 

Shalin Shekhar Mangar commented on SOLR-12649:
----------------------------------------------

I attached a patch with a test that demonstrates the bug. The test injects 
failures during updates and uses the metrics API to assert that there were no 
retries.

> CloudSolrClient retries requests unnecessarily on RouteException
> ----------------------------------------------------------------
>
>                 Key: SOLR-12649
>                 URL: https://issues.apache.org/jira/browse/SOLR-12649
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, SolrJ
>    Affects Versions: 7.4
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Noble Paul
>            Priority: Major
>             Fix For: master (8.0), 7.5
>
>         Attachments: SOLR-12649.patch
>
>
> In SOLR-12610, I noticed that requests being retried by CloudSolrClient when 
> there is no communication exception and no stale state. It seems that 
> CloudSolrCient will retry when there is a RouteException however 
> RouteException is not a communication error but only a wrapper exception for 
> all underlying RemoteExceptions. In other words, CloudSolrClient will retry 
> request on all HTTP 500 errors coming from the server including on admin 
> requests such as split shards.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to