public class TestMasterBalancerNPE extends Object
| Modifier and Type | Class and Description | 
|---|---|
(package private) static class  | 
TestMasterBalancerNPE.MyLoadBalancer
Define this class because the test needs to override
  
StochasticLoadBalancer.balanceTable(org.apache.hadoop.hbase.TableName, java.util.Map<org.apache.hadoop.hbase.ServerName, java.util.List<org.apache.hadoop.hbase.client.RegionInfo>>), which is protected. | 
| Modifier and Type | Field and Description | 
|---|---|
static HBaseClassTestRule | 
CLASS_RULE  | 
private static byte[] | 
FAMILYNAME  | 
org.junit.rules.TestName | 
name  | 
private static HBaseTestingUtility | 
TEST_UTIL  | 
| Constructor and Description | 
|---|
TestMasterBalancerNPE()  | 
| Modifier and Type | Method and Description | 
|---|---|
private org.apache.hadoop.hbase.TableName | 
createTable(String table)  | 
void | 
setupConfiguration()  | 
void | 
shutdown()  | 
void | 
testBalancerNPE()
This test is for HBASE-26712, to make the region is unassigned just before
  
AssignmentManager.balance(org.apache.hadoop.hbase.master.RegionPlan) is invoked on the region. | 
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILYNAME
public org.junit.rules.TestName name
public TestMasterBalancerNPE()
public void setupConfiguration()
public void testBalancerNPE() throws Exception
AssignmentManager.balance(org.apache.hadoop.hbase.master.RegionPlan) is invoked on the region.Exceptionprivate org.apache.hadoop.hbase.TableName createTable(String table) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.