mirror of https://github.com/apache/lucene.git
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:
parent
9f6e3efcba
commit
bdc977613d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue