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
This commit is contained in:
Robert Muir 2014-09-22 12:18:31 +00:00
parent 340a9dc03c
commit ae45ce2fb5
1 changed files with 2 additions and 1 deletions

View File

@ -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);