mirror of https://github.com/apache/lucene.git
LUCENE-3253: TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception before indexing its first document
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1140574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0afcbd7625
commit
c7bd833255
|
@ -184,6 +184,8 @@ public class TestIndexWriterWithThreads extends LuceneTestCase {
|
|||
if (threads[i].addCount > 0) {
|
||||
done = true;
|
||||
break;
|
||||
} else if (!threads[i].isAlive()) {
|
||||
fail("thread failed before indexing a single document");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue