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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static HBaseClusterInterfaceprivate static org.apache.hadoop.hbase.client.Adminprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.hbase.master.HMasterorg.junit.rules.TestNameprivate static HBaseTestingUtilprivate static final longFields 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
Constructors -
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, toggleQuotaCheckAndRestartMiniClusterMethods 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:
ExceptionInterruptedException
-