mirror of https://github.com/apache/lucene.git
do not use near-zero maxMergedSegmentMB for this test!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6caaa0c454
commit
fd44b39c03
|
@ -2324,6 +2324,13 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
|
||||||
});
|
});
|
||||||
|
|
||||||
IndexWriterConfig iwc = newIndexWriterConfig();
|
IndexWriterConfig iwc = newIndexWriterConfig();
|
||||||
|
MergePolicy mp = iwc.getMergePolicy();
|
||||||
|
if (mp instanceof TieredMergePolicy) {
|
||||||
|
TieredMergePolicy tmp = (TieredMergePolicy) mp;
|
||||||
|
if (tmp.getMaxMergedSegmentMB() < 0.2) {
|
||||||
|
tmp.setMaxMergedSegmentMB(0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
MergeScheduler ms = iwc.getMergeScheduler();
|
MergeScheduler ms = iwc.getMergeScheduler();
|
||||||
if (ms instanceof ConcurrentMergeScheduler) {
|
if (ms instanceof ConcurrentMergeScheduler) {
|
||||||
((ConcurrentMergeScheduler) ms).setSuppressExceptions();
|
((ConcurrentMergeScheduler) ms).setSuppressExceptions();
|
||||||
|
|
Loading…
Reference in New Issue