public class TestMasterDryRunBalancer extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILYNAME |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestMasterDryRunBalancer() |
Modifier and Type | Method and Description |
---|---|
private void |
assertServerContainsAllRegions(org.apache.hadoop.hbase.ServerName serverName,
org.apache.hadoop.hbase.TableName tableName) |
private org.apache.hadoop.hbase.TableName |
createTable(String table,
int numRegions) |
void |
shutdown() |
void |
testDryRunBalancer() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
unbalance(org.apache.hadoop.hbase.master.HMaster master,
org.apache.hadoop.hbase.TableName tableName) |
private void |
waitForRegionsToSettle(org.apache.hadoop.hbase.master.HMaster master) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILYNAME
public TestMasterDryRunBalancer()
public void testDryRunBalancer() throws Exception
Exception
private org.apache.hadoop.hbase.TableName createTable(String table, int numRegions) throws IOException
IOException
private org.apache.hadoop.hbase.regionserver.HRegionServer unbalance(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private void assertServerContainsAllRegions(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void waitForRegionsToSettle(org.apache.hadoop.hbase.master.HMaster master)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.