You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2014/02/18 06:31:42 UTC
svn commit: r1569188 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
Author: shalin
Date: Tue Feb 18 05:31:42 2014
New Revision: 1569188
URL: http://svn.apache.org/r1569188
Log:
SOLR-5535: partialResults on control responses is allowed if timeAllowed param is present
Modified:
lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java?rev=1569188&r1=1569187&r2=1569188&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java Tue Feb 18 05:31:42 2014
@@ -442,7 +442,10 @@ public class TestDistributedSearch exten
// 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);