Description
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.
Attachments
Issue Links
- links to