From 165a6d679ac5580c3d88ffa3b0fbf51847472208 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Tue, 1 Apr 2014 02:11:13 +0000 Subject: [PATCH] HBASE-10867 TestRegionPlacement#testRegionPlacement occasionally fails git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1583515 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/master/TestRegionPlacement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java index dbc85ff175b..de26547007b 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestRegionPlacement.java @@ -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 regs = TEST_UTIL.getHBaseCluster().getRegionServer(killIndex).getOnlineRegionsLocalContext();