public class TestRegionServerReportForDuty extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestRegionServerReportForDuty.LogCapturer
LogCapturer is similar to
GenericTestUtils.LogCapturer
except that this implementation has a default appender to the root logger. |
static class |
TestRegionServerReportForDuty.MyRegionServer |
static class |
TestRegionServerReportForDuty.NeverInitializedMaster
This test HMaster class will always throw ServerNotRunningYetException if checked.
|
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 |
testReportForDutyBackoff()
Tests region server should backoff to report for duty if master is not ready.
|
void |
testReportForDutyWithEnvironmentEdge()
Tests region sever reportForDuty with manual environment edge
|
void |
testReportForDutyWithMasterChange()
Tests region sever reportForDuty with backup master becomes primary master after
the first master goes away.
|
void |
testReportForDutyWithRSRpcRetry()
Tests region sever reportForDuty with RS RPC retry
|
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 testReportForDutyBackoff() throws IOException, InterruptedException
IOException
InterruptedException
public void testReportForDutyWithMasterChange() throws Exception
Exception
public void testReportForDutyWithRSRpcRetry() throws Exception
Exception
public void testReportForDutyWithEnvironmentEdge() 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–2021 The Apache Software Foundation. All rights reserved.