Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
IN SOLR-14758, a timeAllowed query was added to the end of DistributedQueryComponentCustomSortTest. The functionality of the test works, however it uses the setDistributedParams method for the query, which adds bogus servers to each of the shards in the param "shards=".
Since timeAllowed is used, the query is cut off after 1 ms. The problem however is that the server does not have time to try all of the shards at that point. Therefore it will return an error if the correct shard URL is at the end of the list of shard servers.
The easy solution here is merely to remove the setDistributedParams and not test that last query with bad shard servers. Or at least that's my best guess.