mirror of https://github.com/apache/lucene.git
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) {
|
if (!failed) {
|
||||||
try {
|
try {
|
||||||
_TestUtil.checkIndex(dir);
|
_TestUtil.checkIndex(dir);
|
||||||
|
|
Loading…
Reference in New Issue