lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1594184 - in /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index: TestIndexWriterThreadsToSegments.java TestTieredMergePolicy.java
Date Tue, 13 May 2014 10:29:35 GMT
Author: mikemccand
Date: Tue May 13 10:29:35 2014
New Revision: 1594184

URL: http://svn.apache.org/r1594184
Log:
er, wrong test

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java?rev=1594184&r1=1594183&r2=1594184&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java
(original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java
Tue May 13 10:29:35 2014
@@ -273,7 +273,7 @@ public class TestIndexWriterThreadsToSeg
   }
 
   public void testDocsStuckInRAMForever() throws Exception {
-    Directory dir = newFSDirectory(createTempDir());
+    Directory dir = newDirectory();
     IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
     iwc.setRAMBufferSizeMB(.2);
     Codec codec = Codec.forName("Lucene46");

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java?rev=1594184&r1=1594183&r2=1594184&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java
(original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java
Tue May 13 10:29:35 2014
@@ -225,7 +225,7 @@ public class TestTieredMergePolicy exten
     iwc.setMaxBufferedDocs(100);
     iwc.setRAMBufferSizeMB(-1);
     IndexWriter w = new IndexWriter(dir, iwc);
-    for(int i=0;i<100000;i++) {
+    for(int i=0;i<15000*RANDOM_MULTIPLIER;i++) {
       Document doc = new Document();
       doc.add(newTextField("id", random().nextLong() + "" + random().nextLong(), Field.Store.YES));
       w.addDocument(doc);



Mime
View raw message