public class TestRegionServerReportForDuty extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestRegionServerReportForDuty.MyRegionServer |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread |
backupMaster |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.LocalHBaseCluster |
cluster |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread |
master |
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread |
rs |
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread |
rs2 |
private static long |
SLEEP_INTERVAL |
private HBaseTestingUtility |
testUtil |
Constructor and Description |
---|
TestRegionServerReportForDuty() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testReportForDutyWithMasterChange()
Tests region sever reportForDuty with backup master becomes primary master after
the first master goes away.
|
private void |
waitForClusterOnline(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) |
private void |
waitForSecondRsStarted() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final long SLEEP_INTERVAL
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.RegionServerThread rs2
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread backupMaster
public TestRegionServerReportForDuty()
public void testReportForDutyWithMasterChange() throws Exception
Exception
private void waitForClusterOnline(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) throws InterruptedException
InterruptedException
private void waitForSecondRsStarted() throws InterruptedException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.