diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java index 53a55ef1d4b..1ee8ea5f462 100644 --- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java +++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java @@ -2085,7 +2085,6 @@ public class IndexWriter implements Closeable, TwoPhaseCommit{ rollbackInternal(); } } - assert assertEventQueueAfterClose(); } private void rollbackInternal() throws IOException { @@ -2180,11 +2179,6 @@ public class IndexWriter implements Closeable, TwoPhaseCommit{ } closed = true; closing = false; - try { - processEvents(false, true); - } finally { - notifyAll(); - } } } }