hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1583515 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java
Date Tue, 01 Apr 2014 02:11:14 GMT
Author: tedyu
Date: Tue Apr  1 02:11:13 2014
New Revision: 1583515

URL: http://svn.apache.org/r1583515
Log:
HBASE-10867 TestRegionPlacement#testRegionPlacement occasionally fails


Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java?rev=1583515&r1=1583514&r2=1583515&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java
Tue Apr  1 02:11:13 2014
@@ -299,7 +299,7 @@ public class TestRegionPlacement {
     boolean isNamespaceServer = false;
     do {
       // kill a random non-meta server carrying at least one region
-      killIndex = random.nextInt(servers.length);
+      killIndex = random.nextInt(SLAVES);
       serverToKill = TEST_UTIL.getHBaseCluster().getRegionServer(killIndex).getServerName();
       Collection<HRegion> regs =
           TEST_UTIL.getHBaseCluster().getRegionServer(killIndex).getOnlineRegionsLocalContext();



Mime
View raw message