public abstract class TestRSGroupsBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static Admin |
admin |
protected static HBaseCluster |
cluster |
protected static java.lang.String |
groupPrefix |
protected static Logger |
LOG |
protected static HMaster |
master |
TestName |
name |
static int |
NUM_DEAD_SERVERS |
static int |
NUM_SLAVES_BASE |
protected static java.security.SecureRandom |
rand |
protected static RSGroupAdmin |
rsGroupAdmin |
protected static java.lang.String |
tablePrefix |
protected static HBaseTestingUtility |
TEST_UTIL |
static long |
WAIT_TIMEOUT |
| Constructor and Description |
|---|
TestRSGroupsBase() |
| Modifier and Type | Method and Description |
|---|---|
protected RSGroupInfo |
addGroup(java.lang.String groupName,
int serverCount) |
protected void |
deleteGroups() |
protected void |
deleteNamespaceIfNecessary() |
protected void |
deleteTableIfNecessary() |
int |
getNumServers() |
java.util.Map<TableName,java.util.List<java.lang.String>> |
getTableRegionMap() |
java.util.Map<TableName,java.util.Map<ServerName,java.util.List<java.lang.String>>> |
getTableServerRegionMap() |
void |
setup() |
void |
testBogusArgs() |
void |
testClearDeadServers() |
void |
testCreateAndDrop() |
void |
testCreateMultiRegion() |
void |
testCreateWhenRsgroupNoOnlineServers() |
void |
testDisabledTableMove() |
void |
testFailRemoveGroup() |
void |
testGroupBalance() |
void |
testKillRS() |
void |
testMoveServers() |
void |
testMoveServersAndTables() |
void |
testMultiTableMove() |
void |
testRegionMove() |
void |
testRemoveServers() |
void |
testSimpleRegionServerMove() |
void |
testTableMoveTruncateAndDrop() |
void |
testValidGroupNames() |
protected static final Logger LOG
public TestName name
protected static final java.lang.String groupPrefix
protected static final java.lang.String tablePrefix
protected static final java.security.SecureRandom rand
protected static HBaseTestingUtility TEST_UTIL
protected static Admin admin
protected static HBaseCluster cluster
protected static RSGroupAdmin rsGroupAdmin
protected static HMaster master
public static final long WAIT_TIMEOUT
public static final int NUM_SLAVES_BASE
public static int NUM_DEAD_SERVERS
public void setup()
protected RSGroupInfo addGroup(java.lang.String groupName,
int serverCount)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionprotected void deleteTableIfNecessary()
throws java.io.IOException
java.io.IOExceptionprotected void deleteNamespaceIfNecessary()
throws java.io.IOException
java.io.IOExceptionprotected void deleteGroups()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<TableName,java.util.List<java.lang.String>> getTableRegionMap()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<TableName,java.util.Map<ServerName,java.util.List<java.lang.String>>> getTableServerRegionMap()
throws java.io.IOException
java.io.IOExceptionpublic void testBogusArgs()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateMultiRegion()
throws java.io.IOException
java.io.IOExceptionpublic void testCreateAndDrop()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleRegionServerMove()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic int getNumServers()
throws java.io.IOException
java.io.IOExceptionpublic void testMoveServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testTableMoveTruncateAndDrop()
throws java.lang.Exception
java.lang.Exceptionpublic void testGroupBalance()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionMove()
throws java.lang.Exception
java.lang.Exceptionpublic void testFailRemoveGroup()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void testKillRS()
throws java.lang.Exception
java.lang.Exceptionpublic void testValidGroupNames()
throws java.io.IOException
java.io.IOExceptionpublic void testMultiTableMove()
throws java.lang.Exception
java.lang.Exceptionpublic void testDisabledTableMove()
throws java.lang.Exception
java.lang.Exceptionpublic void testMoveServersAndTables()
throws java.lang.Exception
java.lang.Exceptionpublic void testClearDeadServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateWhenRsgroupNoOnlineServers()
throws java.lang.Exception
java.lang.Exception