mirror of https://github.com/apache/lucene.git
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:
parent
97cafccf52
commit
be9ddf6aac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue