lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r823369 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java
Date Fri, 09 Oct 2009 00:30:40 GMT
Author: mikemccand
Date: Fri Oct  9 00:30:40 2009
New Revision: 823369

URL: http://svn.apache.org/viewvc?rev=823369&view=rev
Log:
LUCENE-1950: fix intermittent exception in testcase

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java?rev=823369&r1=823368&r2=823369&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java Fri
Oct  9 00:30:40 2009
@@ -45,7 +45,7 @@
     }
 
     public void eval(MockRAMDirectory dir)  throws IOException {
-      if (doFail) {
+      if (doFail && Thread.currentThread().getName().equals("main")) {
         StackTraceElement[] trace = new Exception().getStackTrace();
         for (int i = 0; i < trace.length; i++) {
           if ("doFlush".equals(trace[i].getMethodName())) {



Mime
View raw message