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
IOExceptionInterruptedExceptionprotected void removeGroup(String groupName) throws IOException
IOExceptionprotected void deleteTableIfNecessary() throws IOException
IOExceptionprotected void deleteNamespaceIfNecessary() throws IOException
IOExceptionprotected void deleteGroups() throws IOException
IOExceptionprotected Map<org.apache.hadoop.hbase.TableName,List<String>> getTableRegionMap() throws IOException
IOExceptionprotected Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<String>>> getTableServerRegionMap() throws IOException
IOExceptionpublic void testBogusArgs() throws Exception
Exceptionpublic void testCreateMultiRegion() throws IOException
IOExceptionpublic void testCreateAndDrop() throws Exception
Exceptionpublic void testSimpleRegionServerMove() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic int getNumServers() throws IOException
IOExceptionpublic void testMoveServers() throws Exception
Exceptionpublic void testMoveServersFromDefaultGroup() throws Exception
Exceptionpublic void testTableMoveTruncateAndDrop() throws Exception
Exceptionpublic void testGroupBalance() throws Exception
Exceptionpublic void testRegionMove() throws Exception
Exceptionpublic void testFailRemoveGroup() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testKillRS() throws Exception
Exceptionpublic void testValidGroupNames() throws IOException
IOExceptionprivate String getGroupName(String baseName)
public void testMultiTableMove() throws Exception
Exceptionpublic void testDisabledTableMove() throws Exception
Exceptionpublic void testNonExistentTableMove() throws Exception
Exceptionpublic void testMoveServersAndTables() throws Exception
Exceptionpublic void testClearDeadServers() throws Exception
Exceptionpublic void testRemoveServers() throws Exception
Exceptionpublic void testCreateWhenRsgroupNoOnlineServers() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.