FOLR-5725: test fix for miserable differnce between cloud and non-cloud

facets - when facet.limit=0&facet.missing=true the former responds with
missing counts, but later doesn't.
This commit is contained in:
Mikhail Khludnev 2016-09-03 23:52:47 +03:00
parent e026ac4fe5
commit 9ac5c1cf14
1 changed files with 9 additions and 0 deletions

View File

@ -133,7 +133,16 @@ public class DistributedFacetExistsSmallTest extends BaseDistributedSearchTestCa
params.add("facet.mincount", rand.nextBoolean() ? "0": "1" );
}
final boolean shardRespondsWithMissingEvenLimitIsZero =
params.getBool("facet.missing", false) && params.getInt("facet.limit", 100)==0;
// skip miss count check, here cloud is different to non-distrib
if (shardRespondsWithMissingEvenLimitIsZero ) {
handle.put(null, SKIP);
}
query(params);
if (shardRespondsWithMissingEvenLimitIsZero ) {
handle.remove(null);
}
}
private void checkInvalidMincount() throws SolrServerException, IOException {