mirror of https://github.com/apache/lucene.git
fix test msg
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1371397 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
932901bb01
commit
f8bdd18671
|
@ -757,7 +757,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
|
|||
zkStateReader.getClusterState().getSlice(DEFAULT_COLLECTION, shard)
|
||||
.getShards().size(), solrJetties.size());
|
||||
|
||||
SolrServer lastClient = null;
|
||||
CloudJettyRunner lastJetty = null;
|
||||
for (CloudJettyRunner cjetty : solrJetties) {
|
||||
ZkNodeProps props = cjetty.info;
|
||||
if (verbose) System.err.println("client" + cnt++);
|
||||
|
@ -790,7 +790,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
|
|||
ZkStateReader.ACTIVE);
|
||||
if (active && live) {
|
||||
if (lastNum > -1 && lastNum != num && failMessage == null) {
|
||||
failMessage = shard + " is not consistent. Got " + lastNum + " from " + lastClient + "lastClient"
|
||||
failMessage = shard + " is not consistent. Got " + lastNum + " from " + lastJetty.url + "lastClient"
|
||||
+ " and got " + num + " from " + cjetty.url;
|
||||
|
||||
if (verbose || true) {
|
||||
|
@ -801,15 +801,15 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
|
|||
query.set("rows","1000");
|
||||
query.set("sort","id asc");
|
||||
|
||||
SolrDocumentList lst1 = lastClient.query(query).getResults();
|
||||
SolrDocumentList lst1 = lastJetty.client.solrClient.query(query).getResults();
|
||||
SolrDocumentList lst2 = cjetty.client.solrClient.query(query).getResults();
|
||||
|
||||
showDiff(lst1, lst2, lastClient.toString(), cjetty.client.solrClient.toString());
|
||||
showDiff(lst1, lst2, lastJetty.toString(), cjetty.client.solrClient.toString());
|
||||
}
|
||||
|
||||
}
|
||||
lastNum = num;
|
||||
lastClient = cjetty.client.solrClient;
|
||||
lastJetty = cjetty;
|
||||
}
|
||||
}
|
||||
return failMessage;
|
||||
|
|
Loading…
Reference in New Issue