[
https://issues.apache.org/jira/browse/SOLR-5220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934119#comment-13934119
]
Jan Høydahl commented on SOLR-5220:
-----------------------------------
Yes, I agree that we should not retry on 403 or 404. This also causes problems
for some tests which rely on getting the HTTP error code, see comments in
SOLR-4470.
I propose we turn off retry for 403 and 404. Speak out if there is good reason
not to do this change.
> Marking server as zombie due to 4xx response is odd
> ---------------------------------------------------
>
> Key: SOLR-5220
> URL: https://issues.apache.org/jira/browse/SOLR-5220
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 4.4
> Reporter: Jessica Cheng
> Labels: error, solrj, zombie
> Fix For: 4.8, 5.0
>
>
> In LBHttpSolrServer.request, a request is retried and server marked as zombie
> if the return code is 404, 403, 503, or 500, and the comment says "we retry
> on 404 or 403 or 503 - you can see this on solr shutdown". I think returning
> a 503 on a shutdown is reasonable, but not 4xx, which is supposed to be a
> client error. But even if this is can't be fixed systematically on the
> server-side, seems like on the client side we can retry on another server,
> but not mark the current server as dead, because most likely when the server
> returns a 403 (Forbidden) or 404 (Not Found), it's not because it's dead.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]