Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-5535: partialResults on control responses is allowed if timeAllowed param is present

Shalin Shekhar Mangar73b17f530ec8
diff --git a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
index ef495437743..5b0a692ab4b 100644
--- a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
+++ b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
@@ -442,7 +442,10 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
// TODO: look into why passing true causes fails
params.set("distrib", "false");
final QueryResponse controlRsp = controlClient.query(params);
- validateControlData(controlRsp);
+ // if time.allowed is specified then even a control response can return a partialResults header
+ if (params.get(CommonParams.TIME_ALLOWED) == null) {
+ validateControlData(controlRsp);
+ }
params.remove("distrib");
setDistributedParams(params);