public class TestRSGroupsAdmin2 extends TestRSGroupsBase
TestRSGroupsBase.CPMasterObserver
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
ADMIN, CLUSTER, GROUP_PREFIX, INIT, MASTER, name, NUM_DEAD_SERVERS, NUM_SLAVES_BASE, OBSERVER, TABLE_PREFIX, tableName, TEST_UTIL, WAIT_TIMEOUT
Constructor and Description |
---|
TestRSGroupsAdmin2() |
Modifier and Type | Method and Description |
---|---|
void |
afterMethod() |
void |
beforeMethod() |
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> |
createTableWithRegionSplitting(org.apache.hadoop.hbase.rsgroup.RSGroupInfo rsGroupInfo,
int tableRegionCount) |
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> |
randomlySetOneRegionStateToSplitting(org.apache.hadoop.hbase.rsgroup.RSGroupInfo newGroup)
Randomly choose a region to set state.
|
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> |
randomlySetRegionState(org.apache.hadoop.hbase.rsgroup.RSGroupInfo groupInfo,
org.apache.hadoop.hbase.master.RegionState.State state,
org.apache.hadoop.hbase.TableName... tableNames) |
private <T> Thread |
recoverRegionStateThread(T owner,
Function<T,List<org.apache.hadoop.hbase.client.RegionInfo>> getRegions,
org.apache.hadoop.hbase.master.assignment.RegionStateNode rsn,
AtomicBoolean changed) |
static void |
setUp() |
static void |
tearDown() |
void |
testFailedMoveBeforeRetryExhaustedWhenMoveServer() |
void |
testFailedMoveServersAndRepair() |
void |
testFailedMoveServersTablesAndRepair() |
void |
testMoveServers() |
void |
testMoveServersAndTables() |
void |
testMoveServersFromDefaultGroup() |
void |
testMoveServersToRSGroupPerformance() |
void |
testRegionMove() |
void |
testRegionServerMove() |
void |
testRemoveServers() |
addGroup, deleteGroups, deleteNamespaceIfNecessary, deleteTableIfNecessary, getGroupName, getNameWithoutIndex, getNumServers, getServerName, getTableRegionMap, getTableServerRegionMap, initialize, removeGroup, setUpBeforeMethod, setUpTestBeforeClass, tearDownAfterClass, tearDownAfterMethod, toggleQuotaCheckAndRestartMiniCluster
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestRSGroupsAdmin2()
public void beforeMethod() throws Exception
Exception
public void afterMethod() throws Exception
Exception
public void testRegionMove() throws Exception
Exception
public void testRegionServerMove() throws IOException, InterruptedException
IOException
InterruptedException
public void testMoveServers() throws Exception
Exception
public void testRemoveServers() throws Exception
Exception
public void testMoveServersAndTables() throws Exception
Exception
public void testMoveServersFromDefaultGroup() throws Exception
Exception
public void testFailedMoveBeforeRetryExhaustedWhenMoveServer() throws Exception
Exception
private <T> Thread recoverRegionStateThread(T owner, Function<T,List<org.apache.hadoop.hbase.client.RegionInfo>> getRegions, org.apache.hadoop.hbase.master.assignment.RegionStateNode rsn, AtomicBoolean changed)
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> createTableWithRegionSplitting(org.apache.hadoop.hbase.rsgroup.RSGroupInfo rsGroupInfo, int tableRegionCount) throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> randomlySetOneRegionStateToSplitting(org.apache.hadoop.hbase.rsgroup.RSGroupInfo newGroup) throws IOException
newGroup
- target groupIOException
- if methods called throwprivate org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.master.assignment.RegionStateNode> randomlySetRegionState(org.apache.hadoop.hbase.rsgroup.RSGroupInfo groupInfo, org.apache.hadoop.hbase.master.RegionState.State state, org.apache.hadoop.hbase.TableName... tableNames) throws IOException
IOException
public void testFailedMoveServersAndRepair() throws Exception
Exception
public void testFailedMoveServersTablesAndRepair() throws Exception
Exception
public void testMoveServersToRSGroupPerformance() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.