Class TestRSKilledWhenInitializing
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRSKilledWhenInitializing
Tests that a regionserver that dies after reporting for duty gets removed from list of online
regions. See HBASE-9593.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
A RegionServer that reports for duty and then immediately dies if it is the first to receive the response to a reportForDuty. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final AtomicReference<org.apache.hadoop.hbase.ServerName>
private static final org.slf4j.Logger
private static AtomicBoolean
private static final int
private static final int
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread
startMaster
(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) Start Master.void
Test verifies whether a region server is removed from online servers list in master if it went down after registering with master.
-
Field Details
-
CLASS_RULE
-
LOG
-
testName
-
masterActive
-
killedRS
-
NUM_MASTERS
- See Also:
-
NUM_RS
- See Also:
-
-
Constructor Details
-
TestRSKilledWhenInitializing
public TestRSKilledWhenInitializing()
-
-
Method Details
-
testRSTerminationAfterRegisteringToMasterBeforeCreatingEphemeralNode
Test verifies whether a region server is removed from online servers list in master if it went down after registering with master. Test will TIMEOUT if an error!!!!- Throws:
Exception
-
startMaster
private org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread startMaster(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) Start Master. Get as far as the state where Master is waiting on RegionServers to check in, then return.
-