Package org.apache.hadoop.hbase.master
Class TestMasterFailoverBalancerPersistence
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterFailoverBalancerPersistence
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate intreturn the index of the active master in the clusterprivate org.apache.hadoop.hbase.master.HMasterKill the master and wait for a new active master to show upvoidTest that if the master fails, the load balancer maintains its state (running or not) when the next master takes over 
- 
Field Details
- 
CLASS_RULE
 
 - 
 - 
Constructor Details
- 
TestMasterFailoverBalancerPersistence
 
 - 
 - 
Method Details
- 
testMasterFailoverBalancerPersistence
Test that if the master fails, the load balancer maintains its state (running or not) when the next master takes over- Throws:
 Exception
 - 
killActiveAndWaitForNewActive
private org.apache.hadoop.hbase.master.HMaster killActiveAndWaitForNewActive(SingleProcessHBaseCluster cluster) throws InterruptedException, IOException Kill the master and wait for a new active master to show up- Returns:
 - the new active master
 - Throws:
 InterruptedExceptionIOException
 - 
getActiveMasterIndex
private int getActiveMasterIndex(SingleProcessHBaseCluster cluster) throws org.apache.hadoop.hbase.MasterNotRunningException return the index of the active master in the cluster- Throws:
 org.apache.hadoop.hbase.MasterNotRunningException- if no active master found
 
 -