Class TestRegionServerReportForDuty
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerReportForDuty
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic classstatic classThis test HMaster class will always throw ServerNotRunningYetException if checked. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThreadstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.LocalHBaseClusterprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThreadprivate org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThreadprivate org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThreadprivate static final longprivate HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidTests region server should backoff to report for duty if master is not ready.voidTests 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.voidTests region sever reportForDuty with a non-default environment edgevoidTests region sever reportForDuty with backup master becomes primary master after the first master goes away.voidTests region sever reportForDuty with RS RPC retryprivate voidwaitForClusterOnline(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:
IOExceptionInterruptedException
-
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
-