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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
boolean
private static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertRegionsAssigned
(SingleProcessHBaseCluster cluster, Set<String> expectedRegions) static Collection
private NavigableSet<String>
private int
private boolean
isDeadServerSCPExecuted
(org.apache.hadoop.hbase.ServerName serverName) Checks if the SCP of specific dead server has been executed.private void
void
private void
waitForRSShutdownToStartAndFinish
(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:
InterruptedException
IOException
-
log
-
getNumberOfOnlineRegions
-
assertRegionsAssigned
private void assertRegionsAssigned(SingleProcessHBaseCluster cluster, Set<String> expectedRegions) throws IOException - Throws:
IOException
-
getDoubleAssignedRegions
private NavigableSet<String> getDoubleAssignedRegions(SingleProcessHBaseCluster cluster) throws IOException - Throws:
IOException
-
coordinatedByZK
-