diff --git a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java index e7d5039520c..aa4842b2dcd 100644 --- a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -4315,7 +4315,7 @@ public class TestIndexWriter extends LuceneTestCase { volatile boolean failed; volatile boolean finish; - boolean allowInterrupt = false; + volatile boolean allowInterrupt = false; @Override public void run() { @@ -4439,7 +4439,6 @@ public class TestIndexWriter extends LuceneTestCase { } t.allowInterrupt = false; t.finish = true; - t.interrupt(); t.join(); assertFalse(t.failed); }