tflobbe commented on code in PR #2123:
URL: https://github.com/apache/solr/pull/2123#discussion_r1418049650
##########
solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java:
##########
@@ -598,7 +598,7 @@ public void handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) throw
boolean allShardsFailed = includesTopIdsPurpose &&
allResponsesHaveExceptions;
// if all shards fail, fail the request despite shards.tolerant
if (allShardsFailed) {
- throw (SolrException) srsp.getException();
+ throw new
SolrException(SolrException.ErrorCode.SERVER_ERROR, srsp.getException());
Review Comment:
Can the exception be anything other than a server error? Should we do
something like
[here](https://github.com/apache/solr/pull/2123/files#diff-d6fc591739d3396fb74758c164b4631785e059923eb370c9867771ccdf639675R583-R588)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]