lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r602475 - /lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Date Sat, 08 Dec 2007 14:17:09 GMT
Author: mikemccand
Date: Sat Dec  8 06:17:07 2007
New Revision: 602475

URL: http://svn.apache.org/viewvc?rev=602475&view=rev
Log:
fix intermittent thread-safety failure in contrib/benchmark unit test

Modified:
    lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java

Modified: lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java?rev=602475&r1=602474&r2=602475&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksLogic.java
Sat Dec  8 06:17:07 2007
@@ -347,7 +347,7 @@
   /** use reuters and the exhaust mechanism, but to be faster, add 20 docs only... */
   public static class Reuters20DocMaker extends ReutersDocMaker {
     private int nDocs=0;
-    protected DocData getNextDocData() throws Exception {
+    protected synchronized DocData getNextDocData() throws Exception {
       if (nDocs>=20 && !forever) {
         throw new NoMoreDataException();
       }



Mime
View raw message