Package org.apache.hadoop.hbase.rsgroup
Class TestRSGroupsOfflineMode
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
org.apache.hadoop.hbase.rsgroup.TestRSGroupsOfflineMode
This tests that GroupBasedBalancer will use data in zk to do balancing during master startup.
This does not test retain assignment.
The tests brings up 3 RS, creates a new RS group 'my_group', moves 1 RS to 'my_group', assigns
'hbase:rsgroup' to 'my_group', and kill the only server in that group so that 'hbase:rsgroup'
table isn't available. It then kills the active master and waits for backup master to come
online. In new master, RSGroupInfoManagerImpl gets the data from zk and waits for the expected
assignment with a timeout.
-
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 HBaseClusterInterface
private static org.apache.hadoop.hbase.client.Admin
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.master.HMaster
org.junit.rules.TestName
private static HBaseTestingUtil
private static final long
Fields inherited from class org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase
ADMIN, CLUSTER, GROUP_PREFIX, INIT, MASTER, NUM_DEAD_SERVERS, NUM_SLAVES_BASE, OBSERVER, TABLE_PREFIX, tableName
-
Constructor Summary
-
Method Summary
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
-
master
-
hbaseAdmin
-
TEST_UTIL
-
cluster
-
WAIT_TIMEOUT
- See Also:
-
name
-
-
Constructor Details
-
TestRSGroupsOfflineMode
public TestRSGroupsOfflineMode()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testOffline
- Throws:
Exception
InterruptedException
-