public class TestMasterFailoverBalancerPersistence extends Object
| Modifier and Type | Field and Description | 
|---|---|
static HBaseClassTestRule | 
CLASS_RULE  | 
| Constructor and Description | 
|---|
TestMasterFailoverBalancerPersistence()  | 
| Modifier and Type | Method and Description | 
|---|---|
private int | 
getActiveMasterIndex(MiniHBaseCluster cluster)
return the index of the active master in the cluster 
 | 
private org.apache.hadoop.hbase.master.HMaster | 
killActiveAndWaitForNewActive(MiniHBaseCluster cluster)
Kill the master and wait for a new active master to show up n * @return the new active master n
 * @throws java.io.IOException 
 | 
void | 
testMasterFailoverBalancerPersistence()
Test that if the master fails, the load balancer maintains its state (running or not) when the
 next master takes over n 
 | 
public static final HBaseClassTestRule CLASS_RULE
public TestMasterFailoverBalancerPersistence()
public void testMasterFailoverBalancerPersistence() throws Exception
Exceptionprivate org.apache.hadoop.hbase.master.HMaster killActiveAndWaitForNewActive(MiniHBaseCluster cluster) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprivate int getActiveMasterIndex(MiniHBaseCluster cluster) throws org.apache.hadoop.hbase.MasterNotRunningException
org.apache.hadoop.hbase.MasterNotRunningException - if no active master foundCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.