lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1037214 - in /lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index: TestDoc.java TestIndexWriter.java
Date Sat, 20 Nov 2010 14:02:32 GMT
Author: mikemccand
Date: Sat Nov 20 14:02:32 2010
New Revision: 1037214

URL: http://svn.apache.org/viewvc?rev=1037214&view=rev
Log:
LUCENE-2762: bw changes

Removed:
    lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestDoc.java
Modified:
    lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=1037214&r1=1037213&r2=1037214&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
(original)
+++ lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
Sat Nov 20 14:02:32 2010
@@ -423,13 +423,13 @@ public class TestIndexWriter extends Bas
 
           if (done) {
             // Javadocs state that temp free Directory space
-            // required is at most 2X total input size of
+            // required is at most 3X total input size of
             // indices so let's make sure:
             assertTrue("max free Directory space required exceeded 1X the total input index
sizes during " + methodName +
                        ": max temp usage = " + (dir.getMaxUsedSizeInBytes()-startDiskUsage)
+ " bytes; " +
                        "starting disk usage = " + startDiskUsage + " bytes; " +
                        "input index disk usage = " + inputDiskUsage + " bytes",
-                       (dir.getMaxUsedSizeInBytes()-startDiskUsage) < 2*(startDiskUsage
+ inputDiskUsage));
+                       (dir.getMaxUsedSizeInBytes()-startDiskUsage) < 3*(startDiskUsage
+ inputDiskUsage));
           }
 
           // Make sure we don't hit disk full during close below:
@@ -1078,15 +1078,15 @@ public class TestIndexWriter extends Bas
       long endDiskUsage = dir.getMaxUsedSizeInBytes();
 
       // Ending index is 50X as large as starting index; due
-      // to 2X disk usage normally we allow 100X max
+      // to 3X disk usage normally we allow 100X max
       // transient usage.  If something is wrong w/ deleter
       // and it doesn't delete intermediate segments then it
-      // will exceed this 100X:
+      // will exceed this 150X:
       // System.out.println("start " + startDiskUsage + "; mid " + midDiskUsage + ";end "
+ endDiskUsage);
       assertTrue("writer used too much space while adding documents when autoCommit=false:
mid=" + midDiskUsage + " start=" + startDiskUsage + " end=" + endDiskUsage,
-                 midDiskUsage < 100*startDiskUsage);
+                 midDiskUsage < 150*startDiskUsage);
       assertTrue("writer used too much space after close when autoCommit=false endDiskUsage="
+ endDiskUsage + " startDiskUsage=" + startDiskUsage,
-                 endDiskUsage < 100*startDiskUsage);
+                 endDiskUsage < 150*startDiskUsage);
     }
 
 



Mime
View raw message