Class TestRegionServerReportForDuty
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerReportForDuty
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static class
static class
This test HMaster class will always throw ServerNotRunningYetException if checked. -
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread
static final HBaseClassTestRule
private org.apache.hadoop.hbase.LocalHBaseCluster
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread
private org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread
private static final long
private HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
void
tearDown()
void
Tests region server should backoff to report for duty if master is not ready.void
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
Tests region sever reportForDuty with a non-default environment edgevoid
Tests region sever reportForDuty with backup master becomes primary master after the first master goes away.void
Tests region sever reportForDuty with RS RPC retryprivate void
waitForClusterOnline
(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) private void
-
Field Details
-
CLASS_RULE
-
LOG
-
SLEEP_INTERVAL
- See Also:
-
testUtil
-
cluster
-
rs
-
rs2
-
master
-
backupMaster
-
-
Constructor Details
-
TestRegionServerReportForDuty
public TestRegionServerReportForDuty()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testReportForDutyBackoff
Tests region server should backoff to report for duty if master is not ready.- Throws:
IOException
InterruptedException
-
testReportForDutyWithMasterChange
Tests region sever reportForDuty with backup master becomes primary master after the first master goes away.- Throws:
Exception
-
testReportForDutyWithRSRpcRetry
Tests region sever reportForDuty with RS RPC retry- Throws:
Exception
-
testReportForDutyGetsRejectedByMasterWhenConfiguredToRejectDecommissionedHosts
public void testReportForDutyGetsRejectedByMasterWhenConfiguredToRejectDecommissionedHosts() throws ExceptionTests 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. Test case for HBASE-28342.- Throws:
Exception
-
testReportForDutyWithEnvironmentEdge
Tests region sever reportForDuty with a non-default environment edge- Throws:
Exception
-
waitForClusterOnline
private void waitForClusterOnline(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) throws InterruptedException - Throws:
InterruptedException
-
waitForSecondRsStarted
- Throws:
InterruptedException
-