IW.close() always closes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-11-30 07:11:03 +00:00
parent 9f6e3efcba
commit bdc977613d
1 changed files with 0 additions and 3 deletions

View File

@ -177,9 +177,6 @@ public class TestIndexWriterAbort extends LuceneTestCase {
if (e.getMessage() != null && e.getMessage().startsWith("Fake IOException")) { if (e.getMessage() != null && e.getMessage().startsWith("Fake IOException")) {
exceptionStream.println("\nTEST: got expected fake exc:" + e.getMessage()); exceptionStream.println("\nTEST: got expected fake exc:" + e.getMessage());
e.printStackTrace(exceptionStream); e.printStackTrace(exceptionStream);
try {
iw.rollback();
} catch (Throwable t) {}
} else { } else {
Rethrow.rethrow(e); Rethrow.rethrow(e);
} }