Paul McArthur created SOLR-17206:
------------------------------------
Summary: 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
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]