From 5ba92db7b79d015c187f057776ba5a2cbae12aa0 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 31 Mar 2014 20:16:42 +0000 Subject: [PATCH] LUCENE-5544: disregard leftover events after rollback has finished git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1583439 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/lucene/index/IndexWriter.java | 6 ------ 1 file changed, 6 deletions(-) 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(); - } } } }