Apache Lucene open-source search software
SOLR-9977: Fix config bug in DistribDocExpirationUpdateProcessorTest that allowed false assumptions about when index version changes
Chris Hostetter9ee48aa857e1
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 42be8a292c1..5fd8a9ecbc4 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -95,6 +95,9 @@ Bug Fixes* SOLR-9976: Fix init bug in SegmentsInfoRequestHandlerTest (hossman)+* SOLR-9977: Fix config bug in DistribDocExpirationUpdateProcessorTest that allowed false assumptions+ about when index version changes (hossman)+Optimizations----------------------diff --git a/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.snippet.randomindexconfig.xml b/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.snippet.randomindexconfig.xmldeleted file mode 100644index ec5f54e50dc..00000000000--- a/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.snippet.randomindexconfig.xml+++ /dev/null@@ -1,47 +0,0 @@-<?xml version="1.0" ?>--<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<!----A solrconfig.xml snippet containing indexConfig settings for randomized testing.---->-<indexConfig>- <!-- this sys property is not set by SolrTestCaseJ4 because we ideally want to use- the RandomMergePolicy in all tests - but some tests expect very specific- Merge behavior, so those tests can set it as needed.- -->- <mergePolicy enable="${solr.tests.useMergePolicy:true}" class="${solr.tests.mergePolicy:org.apache.solr.util.RandomMergePolicy}" />- <mergePolicyFactory enable="${solr.tests.useMergePolicyFactory:true}" class="${solr.tests.mergePolicyFactory:org.apache.solr.util.RandomMergePolicyFactory}" />-- <useCompoundFile>${useCompoundFile:false}</useCompoundFile>-- <maxBufferedDocs>${solr.tests.maxBufferedDocs}</maxBufferedDocs>- <ramBufferSizeMB>${solr.tests.ramBufferSizeMB}</ramBufferSizeMB>-- <mergeScheduler class="${solr.tests.mergeScheduler}" />-- <writeLockTimeout>1000</writeLockTimeout>- <commitLockTimeout>10000</commitLockTimeout>-- <!-- this sys property is not set by SolrTestCaseJ4 because almost all tests should- use the single process lockType for speed - but tests that explicitly need- to vary the lockType canset it as needed.- -->- <lockType>${solr.tests.lockType:single}</lockType>-</indexConfig>diff --git a/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.xml b/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.xmlindex 18d16a36d17..2599744b696 100644--- a/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.xml+++ b/solr/core/src/test-files/solr/configsets/doc-expiry/conf/solrconfig.xml@@ -25,14 +25,25 @@<dataDir>${solr.data.dir:}</dataDir>+ <indexConfig>+ <!-- NOTE: we do *NOT* want Randomized Merging for these tests,+ because we need to be able to assert that index changes are only happening+ on the shards we expected them to as a result of our deletes.++ (the random/mock merge classes can cause new readers to be opened after a commit+ even if the index itself hasn't changed - ex: new segments file listing same exact segments++ Instead use Solr defaults for almost everything+ -->+ <lockType>${solr.tests.lockType:single}</lockType>+ </indexConfig>+<directoryFactory name="DirectoryFactory"class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/><schemaFactory class="ClassicIndexSchemaFactory"/><luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>- <xi:include href="solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>-<updateHandler class="solr.DirectUpdateHandler2"><updateLog><str name="dir">${solr.ulog.dir:}</str>