From 04cdd6c249f3bab6258925dbbef37514cd3a553a Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 29 Jul 2010 09:08:11 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/lucene/index/TestIndexWriter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java index 3951913e8fa..10725968712 100644 --- a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -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);