mirror of https://github.com/apache/lucene.git
tests: fix - only do this check if there are actually different docs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a5d5c905e0
commit
fc4ed67dc2
|
@ -1018,13 +1018,15 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
|
|||
Set<Map> differences = showDiff(controlDocList, cloudDocList,"controlDocList","cloudDocList");
|
||||
|
||||
// get versions for the mismatched ids
|
||||
boolean foundId = false;
|
||||
StringBuilder ids = new StringBuilder("id:(");
|
||||
for (Map doc : differences) {
|
||||
ids.append(" "+doc.get("id"));
|
||||
foundId = true;
|
||||
}
|
||||
ids.append(")");
|
||||
|
||||
if (ids.length() > 0) {
|
||||
if (foundId) {
|
||||
// get versions for those ids that don't match
|
||||
q = params("q", ids.toString(), "rows", "100000", "fl", "id,_version_",
|
||||
"sort", "id asc", "tests",
|
||||
|
|
Loading…
Reference in New Issue