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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1311477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2012-04-09 21:49:14 +00:00
parent 97cafccf52
commit be9ddf6aac
1 changed files with 5 additions and 3 deletions

View File

@ -358,7 +358,9 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
// 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 extends BaseDistributedSearchTestCase {
@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) {