From ae45ce2fb5eba6ac3835014ff658c5489c3e2916 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 22 Sep 2014 12:18:31 +0000 Subject: [PATCH] LUCENE-5958: handle illegalstateexception 'checks' by IW as well git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1626750 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestIndexFileDeleter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java index 247d88ee78e..fe20dc106a9 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java @@ -435,7 +435,8 @@ public class TestIndexFileDeleter extends LuceneTestCase { // suppress only FakeIOException: if (exc instanceof RuntimeException && exc.getMessage().equals("fake fail")) { // ok to ignore - } else if (exc instanceof AlreadyClosedException && exc.getCause() != null && "fake fail".equals(exc.getCause().getMessage())) { + } else if ((exc instanceof AlreadyClosedException || exc instanceof IllegalStateException) + && exc.getCause() != null && "fake fail".equals(exc.getCause().getMessage())) { // also ok to ignore } else { super.handleMergeException(exc);