Apache Lucene open-source search software
SOLR-7532: Removed occurrences of the unused 'commitIntervalLowerBound' property for updateHandler elements from Solr configuration
Shalin Shekhar Mangar728891275067
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex d61b7b5b51c..73b6b5fe3c3 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -365,6 +365,9 @@ Other Changes* SOLR-7544: CollectionsHandler refactored to be more modular (Noble Paul)+* SOLR-7532: Removed occurrences of the unused 'commitIntervalLowerBound' property for+ updateHandler elements from Solr configuration. (Marius Grama via shalin)+================== 5.1.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this releasediff --git a/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml b/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xmlindex 220b06089bf..c5acdb4adb8 100644--- a/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml+++ b/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml@@ -38,11 +38,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- --><!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundiff --git a/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java b/solr/core/src/java/org/apache/solr/core/ConfigOverlay.javaindex b2dc4898f2e..2219ed65248 100644--- a/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java+++ b/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java@@ -209,7 +209,6 @@ public class ConfigOverlay implements MapSerializable {" maxDocs:20," +" maxTime:20}," +" commitWithin:{softCommit:11}," +- " commitIntervalLowerBound:21," +" indexWriter:{closeWaitsForMerges:11}}," +" query:{" +" filterCache:{" +diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.javaindex c14b7cadcf5..674edf700cb 100644--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java@@ -418,7 +418,6 @@ public class SolrConfig extends Config implements MapSerializable {getInt("updateHandler/autoCommit/maxTime", -1),getBool("updateHandler/indexWriter/closeWaitsForMerges", true),getBool("updateHandler/autoCommit/openSearcher", true),- getInt("updateHandler/commitIntervalLowerBound", -1),getInt("updateHandler/autoSoftCommit/maxDocs", -1),getInt("updateHandler/autoSoftCommit/maxTime", -1),getBool("updateHandler/commitWithin/softCommit", true));@@ -638,7 +637,7 @@ public class SolrConfig extends Config implements MapSerializable {public static class UpdateHandlerInfo implements MapSerializable {public final String className;- public final int autoCommmitMaxDocs, autoCommmitMaxTime, commitIntervalLowerBound,+ public final int autoCommmitMaxDocs, autoCommmitMaxTime,autoSoftCommmitMaxDocs, autoSoftCommmitMaxTime;public final boolean indexWriterCloseWaitsForMerges;public final boolean openSearcher; // is opening a new searcher part of hard autocommit?@@ -647,16 +646,14 @@ public class SolrConfig extends Config implements MapSerializable {/*** @param autoCommmitMaxDocs set -1 as default* @param autoCommmitMaxTime set -1 as default- * @param commitIntervalLowerBound set -1 as default*/- public UpdateHandlerInfo(String className, int autoCommmitMaxDocs, int autoCommmitMaxTime, boolean indexWriterCloseWaitsForMerges, boolean openSearcher, int commitIntervalLowerBound,+ public UpdateHandlerInfo(String className, int autoCommmitMaxDocs, int autoCommmitMaxTime, boolean indexWriterCloseWaitsForMerges, boolean openSearcher,int autoSoftCommmitMaxDocs, int autoSoftCommmitMaxTime, boolean commitWithinSoftCommit) {this.className = className;this.autoCommmitMaxDocs = autoCommmitMaxDocs;this.autoCommmitMaxTime = autoCommmitMaxTime;this.indexWriterCloseWaitsForMerges = indexWriterCloseWaitsForMerges;this.openSearcher = openSearcher;- this.commitIntervalLowerBound = commitIntervalLowerBound;this.autoSoftCommmitMaxDocs = autoSoftCommmitMaxDocs;this.autoSoftCommmitMaxTime = autoSoftCommmitMaxTime;@@ -670,12 +667,10 @@ public class SolrConfig extends Config implements MapSerializable {LinkedHashMap result = new LinkedHashMap();result.put("indexWriter", makeMap("closeWaitsForMerges", indexWriterCloseWaitsForMerges));result.put("openSearcher", openSearcher);- result.put("commitIntervalLowerBound", commitIntervalLowerBound);result.put("commitWithin", makeMap("softCommit", commitWithinSoftCommit));result.put("autoCommit", makeMap("maxDocs", autoCommmitMaxDocs,- "maxTime", autoCommmitMaxTime,- "commitIntervalLowerBound", commitIntervalLowerBound+ "maxTime", autoCommmitMaxTime));result.put("autoSoftCommit",makeMap("maxDocs", autoSoftCommmitMaxDocs,diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xmlindex 6c7fe6c43f7..56374bc9105 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml@@ -59,11 +59,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- --><!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundiff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xmlindex 0dc3de6f123..743223a3fb7 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml@@ -59,11 +59,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- --><!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundiff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xmlindex f9d5b4e8d50..e406e52c8f0 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml@@ -41,11 +41,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- --><!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundiff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xmlindex 8105bb60dc6..c737fb7ccab 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml@@ -59,12 +59,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- -->-<!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundir - dir to use as the current working directory. default="."diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig.xmlindex 830745238f0..406f7d05777 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml@@ -64,11 +64,6 @@<maxTime>3600000</maxTime></autoCommit>-->- <!-- represents a lower bound on the frequency that commits may- occur (in seconds). NOTE: not yet implemented-- <commitIntervalLowerBound>0</commitIntervalLowerBound>- --><!-- The RunExecutableListener executes an external command.exe - the name of the executable to rundiff --git a/solr/core/src/test-files/solr/crazy-path-to-config.xml b/solr/core/src/test-files/solr/crazy-path-to-config.xmlindex 8f8077c0ace..1d4363edb7a 100644--- a/solr/core/src/test-files/solr/crazy-path-to-config.xml+++ b/solr/core/src/test-files/solr/crazy-path-to-config.xml@@ -26,9 +26,7 @@<xi:include href="collection1/conf/solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>- <updateHandler class="solr.DirectUpdateHandler2">- <commitIntervalLowerBound>0</commitIntervalLowerBound>- </updateHandler>+ <updateHandler class="solr.DirectUpdateHandler2"/><query><maxBooleanClauses>1024</maxBooleanClauses>diff --git a/solr/core/src/test/org/apache/solr/core/TestConfigOverlay.java b/solr/core/src/test/org/apache/solr/core/TestConfigOverlay.javaindex b98ed5ba4a4..539b68827ab 100644--- a/solr/core/src/test/org/apache/solr/core/TestConfigOverlay.java+++ b/solr/core/src/test/org/apache/solr/core/TestConfigOverlay.java@@ -58,8 +58,6 @@ public class TestConfigOverlay extends LuceneTestCase {assertTrue(isEditableProp("requestDispatcher.handleSelect", false, null));- assertTrue(isEditableProp("updateHandler/commitIntervalLowerBound", true, null));- assertFalse(isEditableProp("updateHandler/commitIntervalLowerBound1", true, null));assertTrue(isEditableProp("query.filterCache.initialSize", false, null));assertFalse(isEditableProp("query.filterCache", false, null));assertTrue(isEditableProp("query/filterCache/@initialSize", true, null));