hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1181495 - /hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
Date Tue, 11 Oct 2011 02:13:41 GMT
Author: nspiegelberg
Date: Tue Oct 11 02:13:39 2011
New Revision: 1181495

URL: http://svn.apache.org/viewvc?rev=1181495&view=rev
Log:
Fixed small off-by-one error from previous checkin

Modified:
    hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java

Modified: hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java?rev=1181495&r1=1181494&r2=1181495&view=diff
==============================================================================
--- hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
(original)
+++ hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/loadtest/RegionSplitter.java
Tue Oct 11 02:13:39 2011
@@ -346,9 +346,9 @@ public class RegionSplitter {
 
           // if we have too many outstanding splits, wait for oldest ones to finish
           outstanding.addLast(Pair.newPair(start, split));
-          while (outstanding.size() > MAX_OUTSTANDING) {
+          while (outstanding.size() >= MAX_OUTSTANDING) {
             splitScan(outstanding, table, splitOut);
-            if (outstanding.size() > MAX_OUTSTANDING) Thread.sleep(30 * 1000);
+            if (outstanding.size() >= MAX_OUTSTANDING) Thread.sleep(30 * 1000);
           }
         }
       }



Mime
View raw message