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

ASF subversion and git services commented on SOLR-17206:
--------------------------------------------------------

Commit 4d57b44dbc161d1ea9d3ee38e5099ea59ee2dc93 in solr's branch 
refs/heads/main from pjmcarthur
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=4d57b44dbc1 ]

SOLR-17206: Don't respond with status=-1 (#2368)

It is possible for a response status code of -1 to be used for an update 
request that is distributed, and when all distributed requests fail with an 
exception that is not a SolrException (e.g. IOException)

Co-authored-by: Paul McArthur <[email protected]>

> Update requests to SolrCloud can return status value of -1
> ----------------------------------------------------------
>
>                 Key: SOLR-17206
>                 URL: https://issues.apache.org/jira/browse/SOLR-17206
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 9.4
>            Reporter: Paul McArthur
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> It is possible for SolrCloud to return a HTTP status code of -1 for an update 
> request that is distributed, if all of the distributed commands fail with an 
> exception that is not a SolrException (e.g. an IOException).
>  
> SorlCmdDistributor.SolrError sets a default value of -1 for the status code 
> response for the distributed request. If a SolrException is encountered, the 
> status code is replaced with the code from the response. If any other 
> exception type is raised, the status code remains as -1.
> DistributedUpdatesAsyncException analyzes the errors from all distributed 
> commands to determine the overall status code for the response. If all status 
> codes equal -1, then -1 is returned as the status.
>  
> The code should correspond to a valid HTTP status code, in this case, 500.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to