public class TestRecreateCluster extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static long |
MASTER_INIT_TIMEOUT_MS |
org.junit.rules.TestName |
name |
private static int |
NUM_RS |
private static HBaseTestingUtility |
TEST_UTIL |
private static long |
TIMEOUT_MS |
Constructor and Description |
---|
TestRecreateCluster() |
Modifier and Type | Method and Description |
---|---|
private void |
ensureTableNotColocatedWithSystemTable(org.apache.hadoop.hbase.TableName userTable,
org.apache.hadoop.hbase.TableName systemTable) |
private int |
getServerNumForTableWithOnlyOneRegion(org.apache.hadoop.hbase.TableName tableName) |
private void |
prepareDataBeforeRecreate(HBaseTestingUtility testUtil,
org.apache.hadoop.hbase.TableName tableName) |
private void |
restartHBaseCluster(boolean cleanUpWALs,
boolean cleanUpZnodes) |
void |
setup() |
void |
testRecreateCluster_UserTableDisabled_ReuseWALsAndZNodes() |
void |
testRecreateCluster_UserTableEnabled_CleanupWALAndZNodes() |
void |
testRecreateCluster_UserTableEnabled_CleanupZNodes() |
void |
testRecreateCluster_UserTableEnabled_ReuseWALsAndZNodes() |
private void |
validateDataAfterRecreate(HBaseTestingUtility testUtil,
org.apache.hadoop.hbase.TableName tableName) |
private void |
validateRecreateClusterWithUserDisabled(boolean cleanupWALs,
boolean cleanUpZNodes) |
private void |
validateRecreateClusterWithUserTableEnabled(boolean cleanupWALs,
boolean cleanUpZNodes) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private static final HBaseTestingUtility TEST_UTIL
private static final int NUM_RS
private static final long TIMEOUT_MS
private static final long MASTER_INIT_TIMEOUT_MS
public TestRecreateCluster()
public void setup()
public void testRecreateCluster_UserTableDisabled_ReuseWALsAndZNodes() throws Exception
Exception
public void testRecreateCluster_UserTableEnabled_ReuseWALsAndZNodes() throws Exception
Exception
public void testRecreateCluster_UserTableEnabled_CleanupZNodes() throws Exception
Exception
public void testRecreateCluster_UserTableEnabled_CleanupWALAndZNodes() throws Exception
Exception
private void validateRecreateClusterWithUserDisabled(boolean cleanupWALs, boolean cleanUpZNodes) throws Exception
Exception
private void validateRecreateClusterWithUserTableEnabled(boolean cleanupWALs, boolean cleanUpZNodes) throws Exception
Exception
private void restartHBaseCluster(boolean cleanUpWALs, boolean cleanUpZnodes) throws Exception
Exception
private void prepareDataBeforeRecreate(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private void ensureTableNotColocatedWithSystemTable(org.apache.hadoop.hbase.TableName userTable, org.apache.hadoop.hbase.TableName systemTable) throws IOException, InterruptedException
IOException
InterruptedException
private int getServerNumForTableWithOnlyOneRegion(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void validateDataAfterRecreate(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.