public abstract class TestRSGroupsBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.hbase.client.Admin |
admin |
protected static HBaseCluster |
cluster |
protected static String |
groupPrefix |
protected static org.slf4j.Logger |
LOG |
protected static org.apache.hadoop.hbase.master.HMaster |
master |
org.junit.rules.TestName |
name |
static int |
NUM_DEAD_SERVERS |
static int |
NUM_SLAVES_BASE |
protected static SecureRandom |
rand |
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdmin |
rsGroupAdmin |
(package private) org.apache.hadoop.hbase.TableName |
tableName |
protected static String |
tablePrefix |
protected static HBaseTestingUtility |
TEST_UTIL |
static long |
WAIT_TIMEOUT |
Constructor and Description |
---|
TestRSGroupsBase() |
protected static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
protected static final String groupPrefix
protected static final String tablePrefix
protected static final SecureRandom rand
protected static HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.client.Admin admin
protected static HBaseCluster cluster
protected static org.apache.hadoop.hbase.rsgroup.RSGroupAdmin rsGroupAdmin
protected static org.apache.hadoop.hbase.master.HMaster master
public static final long WAIT_TIMEOUT
public static final int NUM_SLAVES_BASE
public static int NUM_DEAD_SERVERS
org.apache.hadoop.hbase.TableName tableName
public TestRSGroupsBase()
public void setup()
protected org.apache.hadoop.hbase.rsgroup.RSGroupInfo addGroup(String groupName, int serverCount) throws IOException, InterruptedException
IOException
InterruptedException
void removeGroup(String groupName) throws IOException
IOException
protected void deleteTableIfNecessary() throws IOException
IOException
protected void deleteNamespaceIfNecessary() throws IOException
IOException
protected void deleteGroups() throws IOException
IOException
public Map<org.apache.hadoop.hbase.TableName,List<String>> getTableRegionMap() throws IOException
IOException
public Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<String>>> getTableServerRegionMap() throws IOException
IOException
public void testBogusArgs() throws Exception
Exception
public void testCreateMultiRegion() throws IOException
IOException
public void testCreateAndDrop() throws Exception
Exception
public void testSimpleRegionServerMove() throws IOException, InterruptedException
IOException
InterruptedException
public int getNumServers() throws IOException
IOException
public void testMoveServers() throws Exception
Exception
public void testTableMoveTruncateAndDrop() throws Exception
Exception
public void testGroupBalance() throws Exception
Exception
public void testRegionMove() throws Exception
Exception
public void testFailRemoveGroup() throws IOException, InterruptedException
IOException
InterruptedException
public void testKillRS() throws Exception
Exception
public void testValidGroupNames() throws IOException
IOException
private String getGroupName(String baseName)
public void testMultiTableMove() throws Exception
Exception
public void testDisabledTableMove() throws Exception
Exception
public void testNonExistentTableMove() throws Exception
Exception
public void testMoveServersAndTables() throws Exception
Exception
public void testClearDeadServers() throws Exception
Exception
public void testRemoveServers() throws Exception
Exception
public void testCreateWhenRsgroupNoOnlineServers() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.