lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject svn commit: r1140576 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/backwards/ lucene/backwards/src/test-framework/ lucene/backwards/src/test/ lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java solr/
Date Tue, 28 Jun 2011 12:56:04 GMT
Author: simonw
Date: Tue Jun 28 12:56:03 2011
New Revision: 1140576

URL: http://svn.apache.org/viewvc?rev=1140576&view=rev
Log:
LUCENE-3253: TestIndexwriterWithThreads#testCloseWithThreads hangs if a thread hit an exception
before indexing its first document

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test-framework/   (props changed)
    lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
    lucene/dev/branches/branch_3x/solr/   (props changed)

Modified: lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java?rev=1140576&r1=1140575&r2=1140576&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
(original)
+++ lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestIndexWriterWithThreads.java
Tue Jun 28 12:56:03 2011
@@ -178,6 +178,8 @@ public class TestIndexWriterWithThreads 
           if (threads[i].addCount > 0) {
             done = true;
             break;
+          } else if (!threads[i].isAlive()) {
+            fail("thread failed before indexing a single document");
           }
       }
 



Mime
View raw message