HBASE-10867 TestRegionPlacement#testRegionPlacement occasionally fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1583515 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-04-01 02:11:13 +00:00
parent 0f0d6c1754
commit 165a6d679a
1 changed files with 1 additions and 1 deletions

View File

@ -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();