Package org.apache.hadoop.hbase
Class TestClusterBootOrder
java.lang.Object
org.apache.hadoop.hbase.TestClusterBootOrder
Tests the boot order indifference between regionserver and master
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.LocalHBaseClusterprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThreadprivate org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThreadprivate static final longprivate static final longprivate HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()private voidprivate voidvoidtearDown()voidTests launching the cluster by first starting master, and then the regionserver to ensure that it does not matter which is started first.voidTests launching the cluster by first starting regionserver, and then the master to ensure that it does not matter which is started first.private void
-
Field Details
-
CLASS_RULE
-
SLEEP_INTERVAL
- See Also:
-
SLEEP_TIME
- See Also:
-
testUtil
-
cluster
-
rs
-
master
-
-
Constructor Details
-
TestClusterBootOrder
public TestClusterBootOrder()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
startRegionServer
- Throws:
Exception
-
startMaster
- Throws:
Exception
-
waitForClusterOnline
-
testBootRegionServerFirst
Tests launching the cluster by first starting regionserver, and then the master to ensure that it does not matter which is started first.- Throws:
Exception
-
testBootMasterFirst
Tests launching the cluster by first starting master, and then the regionserver to ensure that it does not matter which is started first.- Throws:
Exception
-