Skip to content

Commit 88c37a4

Browse files
guojialiang92jpountz
authored andcommitted
Fix TestIndexWriterWithThreads#testIOExceptionDuringAbortWithThreadsOnlyOnce (apache#14424)
* fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * fix TestIndexWriterWithThreads#testIOExceptionDuringWriteSegmentWithThreadsOnlyOnce Signed-off-by: guojialiang <[email protected]> * update Signed-off-by: guojialiang <[email protected]> --------- Signed-off-by: guojialiang <[email protected]>
1 parent 63329b6 commit 88c37a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lucene/core/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ public void _testMultipleThreadsFailure(MockDirectoryWrapper.Failure failure) th
319319
IOException ioe) {
320320
writer.rollback();
321321
failure.clearDoFail();
322+
} finally {
323+
writer.close();
322324
}
323325
if (VERBOSE) {
324326
System.out.println("TEST: success=" + success);

0 commit comments

Comments
 (0)