public class TestRollingRestart extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
boolean |
splitWALCoordinatedByZK |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestRollingRestart() |
Modifier and Type | Method and Description |
---|---|
private void |
assertRegionsAssigned(MiniHBaseCluster cluster,
Set<String> expectedRegions) |
static Collection |
coordinatedByZK() |
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 |
log(String msg) |
void |
testBasicRollingRestart() |
private void |
waitForRSShutdownToStartAndFinish(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread activeMaster,
org.apache.hadoop.hbase.ServerName serverName) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static HBaseTestingUtility TEST_UTIL
public org.junit.rules.TestName name
public boolean splitWALCoordinatedByZK
public TestRollingRestart()
public void testBasicRollingRestart() throws Exception
Exception
private boolean isDeadServerSCPExecuted(org.apache.hadoop.hbase.ServerName serverName) throws IOException
IOException
private void waitForRSShutdownToStartAndFinish(org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread activeMaster, org.apache.hadoop.hbase.ServerName serverName) throws InterruptedException, IOException
InterruptedException
IOException
private int getNumberOfOnlineRegions(MiniHBaseCluster cluster)
private void assertRegionsAssigned(MiniHBaseCluster cluster, Set<String> expectedRegions) throws IOException
IOException
private NavigableSet<String> getDoubleAssignedRegions(MiniHBaseCluster cluster) throws IOException
IOException
public static Collection coordinatedByZK()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.