mirror of https://github.com/apache/lucene.git
add test for noCFSRatio setter (thanks Tomas for the idea)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1305346 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a29a14698e
commit
aad3a816ab
|
@ -33,6 +33,7 @@
|
||||||
<mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
|
<mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
|
||||||
<int name="maxMergeAtOnceExplicit">19</int>
|
<int name="maxMergeAtOnceExplicit">19</int>
|
||||||
<int name="segmentsPerTier">9</int>
|
<int name="segmentsPerTier">9</int>
|
||||||
|
<double name="noCFSRatio">1.0</double>
|
||||||
</mergePolicy>
|
</mergePolicy>
|
||||||
</indexDefaults>
|
</indexDefaults>
|
||||||
|
|
||||||
|
|
|
@ -45,5 +45,9 @@ public class TestMergePolicyConfig extends SolrTestCaseJ4 {
|
||||||
|
|
||||||
// make sure we overrode segmentsPerTier (split from maxMergeAtOnce out of mergeFactor)
|
// make sure we overrode segmentsPerTier (split from maxMergeAtOnce out of mergeFactor)
|
||||||
assertEquals(9D, tieredMP.getSegmentsPerTier(), 0.001);
|
assertEquals(9D, tieredMP.getSegmentsPerTier(), 0.001);
|
||||||
|
|
||||||
|
// make sure we overrode noCFSRatio (useless because we disabled useCompoundFile,
|
||||||
|
// but just to make sure it works)
|
||||||
|
assertEquals(1.0D, tieredMP.getNoCFSRatio(), 0.001);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue