Apache Lucene open-source search software
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.
Mikhail Khludnev9ac5c1cf149f
diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetExistsSmallTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetExistsSmallTest.javaindex 4a827be9a1e..22dfca302f0 100644--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetExistsSmallTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedFacetExistsSmallTest.java@@ -133,7 +133,16 @@ public class DistributedFacetExistsSmallTest extends BaseDistributedSearchTestCaparams.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 {