mirror of https://github.com/apache/lucene.git
don't call Thread.interrupt after telling sub-thread to finish; it can cause false failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
25e406fdf6
commit
b8dc30b7e3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue