Package org.apache.hadoop.hbase.rsgroup
Class TestRSGroupsAdmin2
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
org.apache.hadoop.hbase.rsgroup.TestRSGroupsAdmin2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
TestRSGroupsBase.CPMasterObserver
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
ADMIN, CLUSTER, GROUP_PREFIX, INIT, MASTER, name, NUM_DEAD_SERVERS, NUM_SLAVES_BASE, OBSERVER, TABLE_PREFIX, tableName, TEST_UTIL, WAIT_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
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
void
void
void
void
void
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
addGroup, deleteGroups, deleteNamespaceIfNecessary, deleteTableIfNecessary, getGroupName, getNameWithoutIndex, getNumServers, getServerName, getTableRegionMap, getTableServerRegionMap, initialize, removeGroup, setUpBeforeMethod, setUpTestBeforeClass, tearDownAfterClass, tearDownAfterMethod, toggleQuotaCheckAndRestartMiniCluster
Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestRSGroupsAdmin2
public TestRSGroupsAdmin2()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
beforeMethod
- Throws:
Exception
-
afterMethod
- Throws:
Exception
-
testRegionMove
- Throws:
Exception
-
testRegionServerMove
- Throws:
IOException
InterruptedException
-
testMoveServers
- Throws:
Exception
-
testRemoveServers
- Throws:
Exception
-
testMoveServersAndTables
- Throws:
Exception
-
testMoveServersFromDefaultGroup
- Throws:
Exception
-
testFailedMoveBeforeRetryExhaustedWhenMoveServer
- Throws:
Exception
-
recoverRegionStateThread
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) -
createTableWithRegionSplitting
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 - Throws:
Exception
-
randomlySetOneRegionStateToSplitting
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 Randomly choose a region to set state.- Parameters:
newGroup
- target group- Returns:
- source server of region, and region state
- Throws:
IOException
- if methods called throw
-
randomlySetRegionState
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) throws IOException - Throws:
IOException
-
testFailedMoveServersAndRepair
- Throws:
Exception
-
testFailedMoveServersTablesAndRepair
- Throws:
Exception
-
testMoveServersToRSGroupPerformance
- Throws:
Exception
-