mirror of https://github.com/apache/lucene.git
LUCENE-10647: Fix TestMergeSchedulerExternal failures (#1011)
Ensure mergeScheduler.sync() gets called before we rollback the writer.
This commit is contained in:
parent
c06b98262c
commit
128869d63a
|
@ -134,7 +134,13 @@ public class TestMergeSchedulerExternal extends LuceneTestCase {
|
|||
for (int i = 0; i < 20; i++) {
|
||||
writer.addDocument(doc);
|
||||
}
|
||||
} catch (
|
||||
@SuppressWarnings("unused")
|
||||
IllegalStateException ise) {
|
||||
// OK
|
||||
}
|
||||
|
||||
try {
|
||||
((MyMergeScheduler) writer.getConfig().getMergeScheduler()).sync();
|
||||
} catch (
|
||||
@SuppressWarnings("unused")
|
||||
|
|
Loading…
Reference in New Issue