public class TestClusterBootOrder extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.LocalHBaseCluster |
cluster |
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread |
master |
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread |
rs |
private static long |
SLEEP_INTERVAL |
private static long |
SLEEP_TIME |
private HBaseTestingUtility |
testUtil |
Constructor and Description |
---|
TestClusterBootOrder() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
private void |
startMaster() |
private void |
startRegionServer() |
void |
tearDown() |
void |
testBootMasterFirst()
Tests launching the cluster by first starting master, and then the regionserver to ensure that
it does not matter which is started first.
|
void |
testBootRegionServerFirst()
Tests launching the cluster by first starting regionserver, and then the master to ensure that
it does not matter which is started first.
|
private void |
waitForClusterOnline() |
public static final HBaseClassTestRule CLASS_RULE
private static final long SLEEP_INTERVAL
private static final long SLEEP_TIME
private HBaseTestingUtility testUtil
private org.apache.hadoop.hbase.LocalHBaseCluster cluster
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread rs
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master
public TestClusterBootOrder()
private void startRegionServer() throws Exception
Exception
private void startMaster() throws Exception
Exception
private void waitForClusterOnline()
public void testBootRegionServerFirst() throws Exception
Exception
public void testBootMasterFirst() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.