public class TestAssignmentManager extends Object
AssignmentManager| Modifier and Type | Class and Description |
|---|---|
static class |
TestAssignmentManager.MockedLoadBalancer
Mocked load balancer class used in the testcase to make sure that the testcase waits until
random assignment is called and the gate variable is set to true.
|
| Modifier and Type | Field and Description |
|---|---|
ResourceCheckerJUnitRule |
cu |
| Constructor and Description |
|---|
TestAssignmentManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
void |
testBalance()
Tests AssignmentManager balance function.
|
void |
testBalanceOnMasterFailoverScenarioWithClosedNode() |
void |
testBalanceOnMasterFailoverScenarioWithOfflineNode() |
void |
testBalanceOnMasterFailoverScenarioWithOpenedNode()
Test a balance going on at same time as a master failover
|
void |
testDisablingTableRegionsAssignmentDuringCleanClusterStartup()
Test verifies whether assignment is skipped for regions of tables in DISABLING state during
clean cluster startup.
|
void |
testGettingAssignmentsExcludesDrainingServers() |
void |
testMasterRestartShouldRemoveStaleZnodesOfUnknownTableAsForMeta()
Test verifies whether stale znodes of unknown tables as for the hbase:meta will be removed or
not.
|
void |
testMasterRestartWhenTableInEnabling()
Test verifies whether all the enabling table regions assigned only once during master startup.
|
void |
testProcessDeadServersAndRegionsInTransitionShouldNotFailWithNPE()
Tests the processDeadServersAndRegionsInTransition should not fail with NPE
when it failed to get the children.
|
void |
testRegionPlanIsUpdatedWhenRegionFailsToOpen()
TestCase verifies that the regionPlan is updated whenever a region fails to open
and the master tries to process RS_ZK_FAILED_OPEN state.(HBASE-5546).
|
void |
testShutdownHandler()
Run a simple server shutdown handler.
|
void |
testSSHWhenDisableTableInProgress()
To test closed region handler to remove rit and delete corresponding znode if region in pending
close or closing while processing shutdown of a region server.(HBASE-5927).
|
void |
testSSHWhenDisablingTableRegionsInOpeningState() |
void |
testSSHWhenSourceRSandDestRSInRegionPlanGoneDown()
When region in transition if region server opening the region gone down then region assignment
taking long time(Waiting for timeout monitor to trigger assign).
|
void |
testSSHWhenSplitRegionInProgress()
To test if the split region is removed from RIT if the region was in SPLITTING state
but the RS has actually completed the splitting in META but went down.
|
void |
testUnassignWithSplitAtSameTime() |
public ResourceCheckerJUnitRule cu
public TestAssignmentManager()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws IOException
IOExceptionpublic void before() throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException
org.apache.hadoop.hbase.ZooKeeperConnectionExceptionIOExceptionpublic void after() throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionpublic void testBalanceOnMasterFailoverScenarioWithOpenedNode() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void testBalanceOnMasterFailoverScenarioWithClosedNode() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void testBalanceOnMasterFailoverScenarioWithOfflineNode() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void testBalance() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void testGettingAssignmentsExcludesDrainingServers() throws Exception
Exceptionpublic void testShutdownHandler() throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperExceptionIOExceptionpublic void testSSHWhenDisableTableInProgress() throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperExceptionIOExceptionpublic void testSSHWhenDisablingTableRegionsInOpeningState() throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperExceptionIOExceptionpublic void testSSHWhenSplitRegionInProgress() throws org.apache.zookeeper.KeeperException, IOException, Exception
org.apache.zookeeper.KeeperExceptionIOExceptionExceptionpublic void testUnassignWithSplitAtSameTime() throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperExceptionIOExceptionpublic void testProcessDeadServersAndRegionsInTransitionShouldNotFailWithNPE() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException, com.google.protobuf.ServiceException
com.google.protobuf.ServiceExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void testRegionPlanIsUpdatedWhenRegionFailsToOpen() throws IOException, org.apache.zookeeper.KeeperException, com.google.protobuf.ServiceException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptioncom.google.protobuf.ServiceExceptionInterruptedExceptionpublic void testDisablingTableRegionsAssignmentDuringCleanClusterStartup() throws org.apache.zookeeper.KeeperException, IOException, Exception
org.apache.zookeeper.KeeperExceptionIOExceptionExceptionpublic void testMasterRestartShouldRemoveStaleZnodesOfUnknownTableAsForMeta() throws org.apache.zookeeper.KeeperException, IOException, Exception
org.apache.zookeeper.KeeperExceptionIOExceptionExceptionpublic void testMasterRestartWhenTableInEnabling() throws org.apache.zookeeper.KeeperException, IOException, Exception
org.apache.zookeeper.KeeperExceptionIOExceptionExceptionpublic void testSSHWhenSourceRSandDestRSInRegionPlanGoneDown() throws org.apache.zookeeper.KeeperException, IOException, com.google.protobuf.ServiceException
org.apache.zookeeper.KeeperExceptionIOExceptioncom.google.protobuf.ServiceExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.