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:
Simon Willnauer 2011-06-28 12:44:33 +00:00
parent 0afcbd7625
commit c7bd833255
1 changed files with 2 additions and 0 deletions

View File

@ -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");
}
}