You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/06/25 02:06:50 UTC
[28/47] lucene-solr:feature/autoscaling: SOLR-10921: set
setMaxClauseCount for every SolrConfig creation to work around test framework
issues
SOLR-10921: set setMaxClauseCount for every SolrConfig creation to work around test framework issues
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/78731ea8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/78731ea8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/78731ea8
Branch: refs/heads/feature/autoscaling
Commit: 78731ea8f4b7bd91bbd5b4fb442cc423b4caee79
Parents: 4e033a0
Author: yonik <yo...@apache.org>
Authored: Fri Jun 23 00:06:51 2017 -0400
Committer: yonik <yo...@apache.org>
Committed: Fri Jun 23 00:07:03 2017 -0400
----------------------------------------------------------------------
solr/core/src/java/org/apache/solr/core/SolrConfig.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/78731ea8/solr/core/src/java/org/apache/solr/core/SolrConfig.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
index bc946e8..dc7fe28 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
@@ -375,6 +375,14 @@ public class SolrConfig extends Config implements MapSerializable {
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 final Class clazz;