accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1351691 - /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java
Date Tue, 19 Jun 2012 13:00:53 GMT
Author: ecn
Date: Tue Jun 19 13:00:53 2012
New Revision: 1351691

URL: http://svn.apache.org/viewvc?rev=1351691&view=rev
Log:
ACCUMULO-643 allow the tablet count to be within 20% of the average

Modified:
    accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java

Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java?rev=1351691&r1=1351690&r2=1351691&view=diff
==============================================================================
--- accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java
(original)
+++ accumulo/trunk/server/src/main/java/org/apache/accumulo/server/test/randomwalk/concurrent/CheckBalance.java
Tue Jun 19 13:00:53 2012
@@ -59,7 +59,7 @@ public class CheckBalance extends Test {
     // Check for even # of tablets on each node
     boolean balanced = true;
     for (Entry<String,Long> entry : counts.entrySet()) {
-      if (Math.abs(entry.getValue().longValue() - average) > 1) {
+      if (Math.abs(entry.getValue().longValue() - average) > Math.max(1, average / 5))
{
         balanced = false;
         break;
       }



Mime
View raw message