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
@Tag("org.apache.hadoop.hbase.testclassification.RSGroupTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestRSGroupsOfflineMode
extends TestRSGroupsBase
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, TestRSGroupsBase.MethodName -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static HBaseClusterInterfaceprivate static org.apache.hadoop.hbase.client.Adminprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.hbase.master.HMasterprivate static HBaseTestingUtilprivate static final longFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetUp()static voidtearDown()voidtestOffline(org.junit.jupiter.api.TestInfo testInfo) 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
-
LOG
-
master
-
hbaseAdmin
-
TEST_UTIL
-
cluster
-
WAIT_TIMEOUT
- See Also:
-
-
Constructor Details
-
TestRSGroupsOfflineMode
public TestRSGroupsOfflineMode()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testOffline
@Test public void testOffline(org.junit.jupiter.api.TestInfo testInfo) throws Exception, InterruptedException - Throws:
ExceptionInterruptedException
-