Apache Lucene open-source search software
SOLR-6834: Warn if checkIntegrityAtMerge is configured
Chris M. Hostetter05945a9490b4
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex c1b9e41f3a7..eac0be5b528 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -116,6 +116,10 @@ Upgrading from Solr 4.xconfigs. If you have a strong need to configure this, you must explicitly configure yourschema with a custom codec. See SOLR-6560 and for more details.+* The "checkIntegrityAtMerge" option in solrconfig.xml is now a No-Op and should be removed+ from any solrconfig.xml files -- these integrity checks are now done automatically at a very+ low level during the segment merging process. See SOLR-6834 for more details.+Detailed Change List----------------------@@ -469,6 +473,10 @@ Other Changes* SOLR-6773: Remove the multicore example as the DIH and cloud examplesillustrate multicore behavior (hossman, Timothy Potter)+* SOLR-6834: Warn if checkIntegrityAtMerge is configured. This option is no longer meaningful+ since the checks are done automatically at a very low level in the segment merging.+ This warning will become an error in Solr 6.0. (hossman)+================== 4.10.3 ==================Bug Fixesdiff --git a/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java b/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.javaindex e0a6f9906ea..371433298fd 100644--- a/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java+++ b/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java@@ -81,8 +81,6 @@ public class SolrIndexConfig implements MapSerializable {public final static String LOCK_TYPE_SINGLE = "single";public final static String LOCK_TYPE_NONE = "none";- public final boolean checkIntegrityAtMerge;-/*** Internal constructor for setting defaults based on Lucene Version*/@@ -101,7 +99,6 @@ public class SolrIndexConfig implements MapSerializable {mergeSchedulerInfo = null;defaultMergePolicyClassName = TieredMergePolicy.class.getName();mergedSegmentWarmerInfo = null;- checkIntegrityAtMerge = false;}/**@@ -174,7 +171,9 @@ public class SolrIndexConfig implements MapSerializable {throw new IllegalArgumentException("Supplying a mergedSegmentWarmer will do nothing since nrtMode is false");}- checkIntegrityAtMerge = solrConfig.getBool(prefix + "/checkIntegrityAtMerge", def.checkIntegrityAtMerge);+ assertWarnOrFail("Begining with Solr 5.0, <checkIntegrityAtMerge> option is no longer supported and should be removed from solrconfig.xml (these integrity checks are now automatic)",+ (null == solrConfig.getNode(prefix+"/checkIntegrityAtMerge",false)),+ false);}@Overridepublic Map<String, Object> toMap() {diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-indexconfig.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-indexconfig.xmlindex 7318727a009..4396957e0ce 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-indexconfig.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-indexconfig.xml@@ -26,6 +26,5 @@<maxIndexingThreads>123</maxIndexingThreads><infoStream>true</infoStream><mergePolicy class="org.apache.solr.util.RandomMergePolicy" />- <checkIntegrityAtMerge>true</checkIntegrityAtMerge></indexConfig></config>diff --git a/solr/server/solr/configsets/basic_configs/conf/solrconfig.xml b/solr/server/solr/configsets/basic_configs/conf/solrconfig.xmlindex 48db0dd3ec7..37a3ddb4e3d 100755--- a/solr/server/solr/configsets/basic_configs/conf/solrconfig.xml+++ b/solr/server/solr/configsets/basic_configs/conf/solrconfig.xml@@ -118,13 +118,6 @@this is enabled here, and controlled through log4j.properties.--><infoStream>true</infoStream>-- <!--- Use true to enable this safety check, which can help- reduce the risk of propagating index corruption from older segments- into new ones, at the expense of slower merging.- -->- <checkIntegrityAtMerge>false</checkIntegrityAtMerge></indexConfig>diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xmlindex 862c8dff52f..76933e24a7b 100755--- a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml+++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml@@ -323,13 +323,6 @@this is enabled here, and controlled through log4j.properties.--><infoStream>true</infoStream>-- <!--- Use true to enable this safety check, which can help- reduce the risk of propagating index corruption from older segments- into new ones, at the expense of slower merging.- -->- <checkIntegrityAtMerge>false</checkIntegrityAtMerge></indexConfig>