lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1044891 - /lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java
Date Sun, 12 Dec 2010 19:17:20 GMT
Author: mikemccand
Date: Sun Dec 12 19:17:20 2010
New Revision: 1044891

URL: http://svn.apache.org/viewvc?rev=1044891&view=rev
Log:
drop run time to [hopefully] avoid OOME

Modified:
    lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java

Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java?rev=1044891&r1=1044890&r2=1044891&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/automaton/fst/TestFSTs.java Sun
Dec 12 19:17:20 2010
@@ -926,7 +926,7 @@ public class TestFSTs extends LuceneTest
     }
 
     final LineFileDocs docs = new LineFileDocs(false);
-    final int RUN_TIME_SEC = LuceneTestCase.TEST_NIGHTLY ? 300 : 1;
+    final int RUN_TIME_SEC = LuceneTestCase.TEST_NIGHTLY ? 100 : 1;
     final IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(-1).setRAMBufferSizeMB(64);
     final File tempDir = _TestUtil.getTempDir("fstlines");
     final MockDirectoryWrapper dir = new MockDirectoryWrapper(random, FSDirectory.open(tempDir));
@@ -972,6 +972,9 @@ public class TestFSTs extends LuceneTest
         }
         builder.add(term, outputs.get(output));
         ord++;
+        if (ord % 100000 == 0 && LuceneTestCase.TEST_NIGHTLY) {
+          System.out.println(ord + " terms...");
+        }
       }
       final FST<Long> fst = builder.finish();
       if (VERBOSE) {



Mime
View raw message