You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2012/04/09 23:49:15 UTC
svn commit: r1311477 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestDistributedSearch.java
Author: hossman
Date: Mon Apr 9 21:49:14 2012
New Revision: 1311477
URL: http://svn.apache.org/viewvc?rev=1311477&view=rev
Log:
SOLR-3134 / SOLR-3335: fix copy/paste mistake in queryPartialResults ... we can't query arbitrary 'clients' because some of the jetty instances are shut down ... should be querying the upClients
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=1311477&r1=1311476&r2=1311477&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 Mon Apr 9 21:49:14 2012
@@ -358,7 +358,9 @@ public class TestDistributedSearch exten
// Thread.sleep(10000000000L);
}
- protected void queryPartialResults(final List<String> upShards, List<SolrServer> upClients, Object... q) throws Exception {
+ protected void queryPartialResults(final List<String> upShards,
+ final List<SolrServer> upClients,
+ Object... q) throws Exception {
final ModifiableSolrParams params = new ModifiableSolrParams();
@@ -385,8 +387,8 @@ public class TestDistributedSearch exten
@Override
public void run() {
for (int j = 0; j < stress; j++) {
- int which = r.nextInt(clients.size());
- SolrServer client = clients.get(which);
+ int which = r.nextInt(upClients.size());
+ SolrServer client = upClients.get(which);
try {
QueryResponse rsp = client.query(new ModifiableSolrParams(params));
if (verifyStress) {