Package org.apache.hadoop.hbase.master
Class TestRollingRestart
java.lang.Object
org.apache.hadoop.hbase.master.TestRollingRestart
Tests the restarting of everything as done during rolling restarts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestNamebooleanprivate static HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertRegionsAssigned(MiniHBaseCluster cluster, Set<String> expectedRegions) static Collectionprivate NavigableSet<String>getDoubleAssignedRegions(MiniHBaseCluster cluster) private intgetNumberOfOnlineRegions(MiniHBaseCluster cluster) private booleanisDeadServerSCPExecuted(org.apache.hadoop.hbase.ServerName serverName) Checks if the SCP of specific dead server has been executed.private voidvoidprivate voidwaitForRSShutdownToStartAndFinish(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread activeMaster, org.apache.hadoop.hbase.ServerName serverName)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
name
-
splitWALCoordinatedByZK
-
-
Constructor Details
-
TestRollingRestart
public TestRollingRestart()
-
-
Method Details
-
testBasicRollingRestart
- Throws:
Exception
-
isDeadServerSCPExecuted
private boolean isDeadServerSCPExecuted(org.apache.hadoop.hbase.ServerName serverName) throws IOException Checks if the SCP of specific dead server has been executed.- Returns:
- true if the SCP of specific serverName has been executed, false if not
- Throws:
IOException
-
waitForRSShutdownToStartAndFinish
private void waitForRSShutdownToStartAndFinish(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread activeMaster, org.apache.hadoop.hbase.ServerName serverName) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
log
-
getNumberOfOnlineRegions
-
assertRegionsAssigned
private void assertRegionsAssigned(MiniHBaseCluster cluster, Set<String> expectedRegions) throws IOException - Throws:
IOException
-
getDoubleAssignedRegions
- Throws:
IOException
-
coordinatedByZK
-