public class TestRegionServerReportForDuty extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestRegionServerReportForDuty.LogCapturer |
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 HBaseTestingUtil |
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 |
testReportForDutyGetsRejectedByMasterWhenConfiguredToRejectDecommissionedHosts()
Tests that the RegionServer's reportForDuty gets rejected by the master when the master is
configured to reject decommissioned hosts and when there is a match for the joining
RegionServer in the list of decommissioned servers.
|
void |
testReportForDutyWithEnvironmentEdge()
Tests region sever reportForDuty with a non-default 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 HBaseTestingUtil 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 testReportForDutyGetsRejectedByMasterWhenConfiguredToRejectDecommissionedHosts() 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–2020 The Apache Software Foundation. All rights reserved.