mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 08:19:23 +00:00
fix TestIW.testThreadInterruptDeadlock to properly close (abort) its writer
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@980369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3bb09bb8a
commit
04cdd6c249
@ -4387,6 +4387,12 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
w.rollback();
|
||||
} catch (IOException ioe) {
|
||||
throw new RuntimeException(ioe);
|
||||
}
|
||||
|
||||
if (!failed) {
|
||||
try {
|
||||
_TestUtil.checkIndex(dir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user