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 HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertRegionsAssigned
(MiniHBaseCluster cluster, Set<String> expectedRegions) static Collection
private NavigableSet<String>
getDoubleAssignedRegions
(MiniHBaseCluster cluster) private int
getNumberOfOnlineRegions
(MiniHBaseCluster cluster) 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(MiniHBaseCluster cluster, Set<String> expectedRegions) throws IOException - Throws:
IOException
-
getDoubleAssignedRegions
- Throws:
IOException
-
coordinatedByZK
-