tests: only do this check if there are actually different docs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427606 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-01-02 00:47:23 +00:00
parent 87a6af1acf
commit a5d5c905e0
1 changed files with 13 additions and 9 deletions

View File

@ -1024,14 +1024,18 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
} }
ids.append(")"); ids.append(")");
if (ids.length() > 0) {
// get versions for those ids that don't match // get versions for those ids that don't match
q = params("q",ids.toString(),"rows","100000", "fl","id,_version_", "sort","id asc", q = params("q", ids.toString(), "rows", "100000", "fl", "id,_version_",
"tests","checkShardConsistency(vsControl)/getVers"); // add a tag to aid in debugging via logs "sort", "id asc", "tests",
"checkShardConsistency(vsControl)/getVers"); // add a tag to aid in
// debugging via logs
SolrDocumentList a = controlClient.query(q).getResults(); SolrDocumentList a = controlClient.query(q).getResults();
SolrDocumentList b = cloudClient.query(q).getResults(); SolrDocumentList b = cloudClient.query(q).getResults();
log.error("controlClient :" + a + "\n\tcloudClient :" + b); log.error("controlClient :" + a + "\n\tcloudClient :" + b);
}
fail(msg); fail(msg);
} }