SOLR-10921: set setMaxClauseCount for every SolrConfig creation to work around test framework issues

This commit is contained in:
yonik 2017-06-23 00:06:51 -04:00
parent 4e033a0f4e
commit 78731ea8f4
1 changed files with 8 additions and 0 deletions

View File

@ -375,6 +375,14 @@ public class SolrConfig extends Config implements MapSerializable {
classVsSolrPluginInfo = Collections.unmodifiableMap(map); classVsSolrPluginInfo = Collections.unmodifiableMap(map);
} }
{
// non-static setMaxClauseCount because the test framework sometimes reverts the value on us and
// the static setting above is only executed once. This re-sets the value every time a SolrConfig
// obect is created. See SOLR-10921
BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE-1);
}
public static class SolrPluginInfo { public static class SolrPluginInfo {
public final Class clazz; public final Class clazz;