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
Nested ClassesModifier and TypeClassDescription(package private) static classA RegionServer that reports for duty and then immediately dies if it is the first to receive the response to a reportForDuty. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final AtomicReference<org.apache.hadoop.hbase.ServerName>private static final org.slf4j.Loggerprivate static AtomicBooleanprivate static final intprivate static final intorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThreadstartMaster(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread master) Start Master.voidTest 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.
-