Package org.apache.hadoop.hbase.master
Class TestMasterFailoverBalancerPersistence
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterFailoverBalancerPersistence
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getActiveMasterIndex
(MiniHBaseCluster cluster) return the index of the active master in the clusterprivate org.apache.hadoop.hbase.master.HMaster
Kill the master and wait for a new active master to show upvoid
Test 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(MiniHBaseCluster cluster) throws InterruptedException, IOException Kill the master and wait for a new active master to show up- Returns:
- the new active master
- Throws:
InterruptedException
IOException
-
getActiveMasterIndex
private int getActiveMasterIndex(MiniHBaseCluster 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
-